Function at 0x415470
Capabilities:
Create mailslot
Get disk information
Get file attributes
Move file
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415f86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1a30
call fcn.00414aa0
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov edi, dword [sym.imp.GDI32.dll_GetCharABCWidthsA]
xor esi, esi
mov edi, edi
cmp esi, 0x1cbad
jge 0x4154c2
push ebp
push ebp
push ebp
push ebp
call edi
push ebp
push ebp
call ebx
cmp esi, 0x1ea0a203
jle 0x4154e1
cmp dword [esp + 0x20], 0xad9bfe
je 0x4154e1
cmp dword [esp + 0xe4], 0x8ca5c90
jne 0x4154ea
inc esi
cmp esi, 0x8c2d3a9a
jb 0x4154b0
cmp dword [0x6e0b3c], 0x12
jne 0x4159d5
push ebp
push ebp
push ebp
call fcn.00407d11
add esp, 0xc
push 0x404080
push ebp
call fcn.00408663
push ebp
call fcn.00408633
add esp, 0xc
push ebp
call fcn.0040831f
add esp, 4
push ebp
call fcn.0040880b
add esp, 4
mov dword [esp + 0x30], 0x4042f0
mov dword [esp + 0x40], 0x4042f8
mov dword [esp + 0x1a4c], ebp
push 4
mov dword [esp + 0x20], 1
mov dword [esp + 0x94], 0x404294
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa4], ebp
mov dword [esp + 0xa8], 0x201
mov dword [esp + 0xac], 6
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xbc], ebp
mov dword [esp + 0xc0], ebp
mov dword [esp + 0xa0], ebp
call fcn.00408ab1
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x4155ee
call fcn.00407530
mov dword [esi], eax
call fcn.004072ef
push ebp
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004076f6
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4155e3
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 0x14]
call fcn.0040771e
jmp 0x4155f0
xor esi, esi
lea eax, [esp + 0x48]
mov dword [esp + 0xc8], eax
lea edi, [esp + 0x18]
lea eax, [esp + 0x90]
mov dword [esp + 0xc0], esi
mov dword [esp + 0xcc], ebp
call fcn.00405350
mov edi, eax
mov dword [esp + 0x1a4c], 3
call fcn.00406d10
mov byte [esp + 0x1a4c], 2
mov edi, dword [esp + 0x18]
mov ebx, eax
cmp edi, ebp
je 0x415679
push ebp
lea ecx, [esp + 0x24]
call fcn.004076f6
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x415657
cmp eax, 0xffffffff
jae 0x415657
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x20]
and esi, edi
call fcn.0040771e
cmp esi, ebp
je 0x415679
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
push 0x20
mov ecx, ebx
call eax
mov byte [esp + 0xd0], al
cmp dword [esp + 0xc8], ebp
jne 0x4156bd
mov eax, dword [esp + 0x9c]
or eax, 4
and eax, 0x17
mov dword [esp + 0x9c], eax
test dword [esp + 0xa0], eax
je 0x4156bd
lea ecx, [esp + 0x90]
call fcn.00405280
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x40], 0x40429c
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], 0x4042a4
mov dword [esp + 0x1a4c], 6
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + eax + 0x34], 0x4042ec
call fcn.00406400
mov dword [esp + 0x48], 0x4042ac
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x1a4c], 8
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
push 1
mov bl, 9
mov byte [esp + 0x1a50], bl
mov edi, 0xf
push 0x40408c
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebp
mov byte [esp + 0xe0], 0
call fcn.00406310
lea ecx, [esp + 0x20]
mov byte [esp + 0x1a4c], 0xa
call fcn.00406290
mov esi, dword [esp + 0x24]
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
call fcn.00406e50
add esi, 0x1c
mov dword [esp + 0x24], esi
mov esi, 0x10
mov byte [esp + 0x1a4c], bl
cmp dword [esp + 0xec], esi
jb 0x4157b3
mov eax, dword [esp + 0xd8]
push eax
call fcn.0040872b
add esp, 4
push 0x19
push 0x404090
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], edi
mov dword [esp + 0xf0], ebp
mov byte [esp + 0xe0], 0
call fcn.00406310
lea ecx, [esp + 0xd8]
push ecx
lea edi, [esp + 0x24]
mov byte [esp + 0x1a50], 0xb
call fcn.004061e0
cmp dword [esp + 0xec], esi
jb 0x41580e
mov edx, dword [esp + 0xd8]
push edx
call fcn.0040872b
add esp, 4
push ebp
push ebp
call fcn.0040824b
push ebp
call fcn.0040828b
add esp, 0xc
push ebp
push ebp
call fcn.0040824b
push ebp
call fcn.00408211
add esp, 0xc
push ebp
push ebp
call fcn.0040875e
push ebp
call fcn.00408736
add esp, 0xc
push ebp
push ebp
push ebp
call fcn.004089e4
add esp, 0xc
push ebp
push ebp
push ebp
push ebp
push ebp
call fcn.00407b1b
add esp, 0x14
push ebp
push ebp
push ebp
call fcn.00408608
mov ebx, dword [esp + 0x2c]
add esp, 0xc
cmp ebx, ebp
je 0x415888
mov edi, dword [esp + 0x24]
mov esi, ebx
cmp ebx, edi
je 0x41587f
call fcn.00407050
add esi, 0x1c
cmp esi, edi
jne 0x415873
push ebx
call fcn.0040872b
add esp, 4
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x90]
mov dword [esp + 0x18], eax
mov dword [esp + edx + 0x30], 0x4042ec
mov dword [esp + 0x1a4c], 0xc
test byte [esp + 0x88], 1
lea eax, [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], 0x4042ac
je 0x4158d6
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
push eax
call fcn.0040872b
add esp, 4
mov edx, dword [esp + 0x58]
mov dword [edx], ebp
mov eax, dword [esp + 0x68]
mov dword [eax], ebp
mov ecx, dword [esp + 0x78]
mov dword [ecx], ebp
mov edx, dword [esp + 0x5c]
mov dword [edx], ebp
mov eax, dword [esp + 0x6c]
mov dword [eax], ebp
mov ecx, dword [esp + 0x7c]
mov dword [ecx], ebp
and dword [esp + 0x88], 0xfffffffe
mov dword [esp + 0x84], ebp
mov dword [esp + 0x48], 0x404254
mov byte [esp + 0x1a4c], 0xd
mov eax, dword [esp + 0x80]
mov ebx, eax
cmp eax, ebp
je 0x415971
mov edi, dword [eax]
cmp edi, ebp
je 0x415968
push ebp
lea ecx, [esp + 0x24]
call fcn.004076f6
mov eax, dword [edi + 4]
cmp eax, ebp
jbe 0x415946
cmp eax, 0xffffffff
jae 0x415946
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x20]
and esi, edi
call fcn.0040771e
cmp esi, ebp
je 0x415968
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.0040872b
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1a4c], 0xc
call fcn.0040774f
mov dword [esp + 0x1a4c], 0xffffffff
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x30], 0x4042a4
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x40], 0x40429c
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x90]
mov dword [esp + eax + 0x30], 0x404294
push ecx
mov dword [esp + 0x94], 0x404248
call fcn.00407225
add esp, 4
mov eax, 0x3a02
add dword [0x6e0b3c], eax
mov edx, dword [0x6e0b3c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
mov esi, dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFix]
mov dword [0x6db48c], eax
mov dword [esp + 0x1c], 0x963510
jmp 0x415a20
cmp dword [0x6e0b3c], 0xbc5
jne 0x415b6a
push 0
push 0
push 0
call ebp
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemTime]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
push 0
call esi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
call dword [sym.imp.KERNEL32.dll_ConvertThreadToFiber]
push 0
push 0
lea edx, [esp + 0xa48]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0xe48]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push 0
push 0
push 0
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea edx, [esp + 0x1644]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x244]
push eax
push 0x4040ac
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
push 0
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
push 0x4040d8
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0x4040f0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
push 0x40411c
push 0x404130
call dword [sym.imp.KERNEL32.dll_GetProfileIntW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec dword [esp + 0x1c]
jne 0x415a20
mov eax, dword [0x6e0b3c]
xor esi, esi
test eax, eax
je 0x415baf
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
call fcn.00415160
cmp dword [0x6e0b3c], 0x29
jne 0x415ba5
push 0
push 0
push 0
push 0x404160
push 0x40417c
call edi
mov eax, dword [0x6e0b3c]
inc esi
cmp esi, eax
jb 0x415b85
cmp eax, 0x584
jne 0x415c13
push 0
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea edx, [esp + 0x18]
push edx
call esi
push 0x404198
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [esp + 0x14]
push eax
call esi
push 0x4041a0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push 0
lea ecx, [esp + 0x244]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, 0x25883
mov edi, edi
cmp dword [0x6e0b3c], 0x15a
jne 0x415c33
lea edx, [esp + 0x20]
push edx
call edi
dec esi
jne 0x415c20
mov byte [0x4632a8], 0
call fcn.004150b0
call fcn.00415440
call fcn.00415150
call fcn.00415260
cmp dword [0x6e0b3c], 0xd5c
mov byte [0x4632a9], 0x73
jne 0x415cb4
lea eax, [esp + 0x100]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
lea edx, [esp + 0x244]
push edx
push 0x4041b0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x4041c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
mov ecx, dword [esp + 0x1a44]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret