Function at 0x41cf90
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
sub esp, 0x130
push edi
push esi
push ebx
add esp, 0xfffffff8
push 0xf031f
push 0x9001f
call sub.crtdll.dll__control87
call fcn.0041e8dc
call sub.KERNEL32.dll_GetCommandLineW
mov edi, eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call sub.KERNEL32.dll_WideCharToMultiByte
mov ebx, eax
add esp, 0xfffffff8
push 1
push ebx
call sub.crtdll.dll_calloc
mov esi, eax
add esp, 0x20
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call sub.KERNEL32.dll_WideCharToMultiByte
add esp, 0xfffffff8
push 0x4dfe8c
push esi
call fcn.0041947c
add esp, 0x10
test eax, eax
jne 0x41d020
add esp, 0xfffffff4
push 1
call fcn.00424a6c
jmp 0x41d2d1
cmp dword [0x4dffb0], 0
jne 0x41d060
cmp byte [0x512dd0], 0
jne 0x41d060
call fcn.0041ce34
mov dword [0x4dfe6c], eax
test eax, eax
jne 0x41d060
call fcn.0042429c
test eax, eax
jne 0x41d060
call fcn.004243fc
test eax, eax
jne 0x41d060
mov eax, 0xffffffff
jmp 0x41d2d4
mov dword [0x4dffb0], 0
cmp dword [0x512c70], 0
je 0x41d097
cmp dword [0x4dfe60], 0
je 0x41d097
push 0
push 0
push dword [0x4dfe64]
push 0xffff
call sub.USER32.dll_PostMessageA
xor eax, eax
jmp 0x41d2d4
call sub.crtdll.dll__tzset
add esp, 0xfffffff4
push 0
call sub.OLE32.dll_OleInitialize
add esp, 0xc
cmp dword [0x4dffb0], 0
je 0x41d13e
add esp, 0xfffffff4
push 0
call sub.crtdll.dll_time
mov dword [esp + 0x2c], eax
add esp, 0xfffffff4
push 0x41ce82
call fcn.0041af84
add esp, 0x20
add esp, 0xfffffff4
add esp, 0xfffffff4
lea eax, [esp + 0x34]
push eax
call sub.crtdll.dll_ctime
push eax
call fcn.0041af84
add esp, 0x20
cmp dword [0x512c70], 0
je 0x41d100
add esp, 0xfffffff4
push 0x41ce85
jmp 0x41d108
add esp, 0xfffffff4
push 0x512a30
call fcn.0041af84
add esp, 0x10
add esp, 0xfffffff4
push 0x41cea0
call fcn.0041af84
add esp, 0xfffffff4
push dword [0x50fa20]
call fcn.0041af84
add esp, 0x20
add esp, 0xfffffff4
push 0x41ba05
call fcn.0041af84
add esp, 0x10
call fcn.0042404c
add esp, 0xfffffff4
push 0x41cd64
call sub.crtdll.dll_atexit
call fcn.00420fa4
call fcn.00420c98
call fcn.00420310
call fcn.0041b39c
call fcn.00420130
add esp, 0x10
cmp dword [0x4dfe6c], 0
jne 0x41d1a4
add esp, 0xfffffff4
add esp, 0xfffffff4
push 0x512dd0
call fcn.0041f5f4
push eax
call fcn.00424210
mov dword [0x4dfe70], eax
add esp, 0x20
test eax, eax
jne 0x41d1a4
add esp, 0xfffffff4
push 2
call fcn.00424a6c
add esp, 0x10
add esp, 0xfffffffc
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateMutexA
mov dword [0x4dffc8], eax
add esp, 0xfffffff4
push 0
push 0
push 1
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x4dffcc], eax
mov esi, dword [0x4dfe70]
add esi, 0x400000
call fcn.0041af40
add esp, 0x10
cmp byte [0x512dd0], 0
je 0x41d21c
add esp, 0xfffffff8
push 0x512dd0
lea ebx, [esp + 0x2c]
push ebx
call sub.crtdll.dll_strcpy
add esp, 0xfffffff8
push 0x5c
push ebx
call sub.crtdll.dll_strrchr
add esp, 0x20
test eax, eax
je 0x41d21c
mov byte [eax], 0
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
add esp, 0xc
call fcn.004245c0
cmp dword [0x4dffac], 0
je 0x41d249
cmp dword [0x4dffb0], 0
je 0x41d23c
cmp dword [0x512c70], 0
je 0x41d249
add esp, 0xfffffff4
push 1
call fcn.0041b2dc
add esp, 0x10
mov eax, dword [0x4dfe6c]
test eax, eax
jne 0x41d271
add esp, 0xfffffff8
push 0x41cf8c
push 0x512dd0
call fcn.00459e10
mov dword [0x4dfe6c], eax
push 0
push 0
push esi
push eax
jmp 0x41d283
add esp, 0xfffffff4
push eax
call fcn.00459f18
push edx
push eax
push esi
push dword [0x4dfe6c]
call fcn.004163bc
add esp, 0x20
add esp, 0xfffffff4
push dword [0x4dfe6c]
call fcn.00459df0
add esp, 0x10
cmp dword [0x4dffac], 0
je 0x41d2aa
call fcn.004247ec
call fcn.00420e48
add esp, 0xfffffff4
call fcn.00406698
push eax
call fcn.004224c0
call fcn.004c821c
call fcn.00407778
call fcn.0041af5c
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
add esp, 0x130
ret