Function at 0x401c5c
Capabilities:
Accept command line arguments
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x151c
call fcn.004037f0
mov eax, dword [0x404034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 8
pop ecx
push 0xa
xor ebx, ebx
lea edi, [ebp - 0x14b8]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x151c]
mov dword [ebp - 0x14c4], ebx
push 0x208
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x14bc], ebx
push ebx
push eax
mov dword [ebp - 0x14c8], ebx
mov dword [ebp - 0x14cc], ebx
mov dword [ebp - 0x14d0], ebx
mov dword [ebp - 0x14d4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov dword [ebp - 0x14f0], ebx
push ecx
lea eax, [ebp - 0xc38]
mov dword [ebp - 0x14f4], ebx
push eax
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x14ec], ebx
mov dword [ebp - 0x14e8], ebx
call fcn.00401ab0
push ebx
push ebx
mov dword [ebp - 0x14e4], ebx
xor edx, edx
inc ebx
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x401d20
or ebx, 0xffffffff
jmp 0x401faf
mov ecx, edi
call fcn.004029ab
mov dword [0x4043a0], esi
call fcn.00401bf4
push 0x104
lea ecx, [ebp - 0x210]
mov dword [0x40439c], eax
push ecx
push 0x7d1
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x4043a0]
xor esi, esi
push 0x65
push dword [0x40439c]
mov dword [ebp - 0x151c], 3
mov dword [ebp - 0x1518], 0x4025b0
mov dword [ebp - 0x1514], esi
mov dword [ebp - 0x1510], esi
mov dword [ebp - 0x150c], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [ebp - 0x1508], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push esi
mov dword [ebp - 0x1504], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x1500], eax
mov esi, 0x40135c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x14f8], esi
mov dword [ebp - 0x14fc], eax
lea eax, [ebp - 0x151c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
lea eax, [ebp - 0x210]
push ecx
push dword [0x4043a0]
push ecx
push ecx
push 0xc8
push 0x12c
push ecx
push ecx
push 0xcf0000
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp - 0x14c0], esi
test esi, esi
je 0x401faf
mov dword [ebp - 0x14b4], esi
call fcn.00401b83
mov dword [0x4043a4], eax
test eax, eax
jne 0x401e2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401faf
lea eax, [ebp - 0x14e4]
mov ecx, edi
push eax
lea edx, [ebp - 0x14c8]
call fcn.004025d3
test eax, eax
js 0x401faf
call fcn.0040193a
cmp dword [section..data], 5
mov edx, 0x4000
mov ebx, dword [ebp - 0x14c8]
jbe 0x401ef0
mov ecx, dword [0x40400c]
xor edi, edi
and ecx, edx
mov eax, edi
or eax, ecx
je 0x401ef2
mov ecx, dword [0x404014]
mov eax, ecx
and eax, edx
cmp edi, dword [0x404010]
jne 0x401ef2
cmp eax, ecx
jne 0x401ef2
push 4
pop ecx
lea eax, [ebp - 0x14c8]
mov dword [ebp - 0x14c8], ebx
mov dword [ebp - 0x1468], eax
lea eax, [ebp - 0x1498]
push eax
push ecx
push edi
push edi
push 0x4014a9
push section..data
mov dword [ebp - 0x1464], edi
mov dword [ebp - 0x1460], ecx
mov dword [ebp - 0x145c], edi
mov dword [ebp - 0x1478], 0x4013ac
mov dword [ebp - 0x1474], edi
mov dword [ebp - 0x1470], 0xc
mov dword [ebp - 0x146c], edi
call fcn.004019c7
jmp 0x401ef2
xor edi, edi
mov eax, dword [0x40401c]
mov ecx, dword [0x404018]
push eax
push ecx
mov dword [section..data], edi
mov dword [0x404018], edi
mov dword [0x40401c], edi
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
test ebx, 0x2000
je 0x401f6d
push 0x820
lea eax, [ebp - 0x1458]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1458]
push 0x410
push eax
push 0x7d7
push dword [0x40439c]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x40
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x1458]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
xor ebx, ebx
inc ebx
jmp 0x401fb1
test ebx, 0x1000
je 0x40202e
push 7
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401fac
mov ecx, edi
call dword [0x405130]
mov esi, esp
call edi
cmp esi, esp
je 0x401fa4
mov ecx, 4
int 0x29
test eax, eax
js 0x401e28
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, dword [ebp - 0x14bc]
test ecx, ecx
je 0x401fde
mov dword [ebp - 0x14bc], edi
mov edi, esp
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x405130]
call esi
cmp edi, esp
je 0x401fde
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x14c4]
test ecx, ecx
je 0x40200d
xor edx, edx
mov edi, esp
mov dword [ebp - 0x14c4], edx
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x405130]
call esi
cmp edi, esp
je 0x40200d
mov ecx, 4
int 0x29
mov eax, dword [0x4043a4]
test eax, eax
je 0x402560
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [0x4043a4], esi
jmp 0x402562
test ebx, 0x800
je 0x40206a
push 0xb
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401fac
mov ecx, edi
call dword [0x405130]
mov esi, esp
call edi
cmp esi, esp
je 0x402065
mov ecx, 4
int 0x29
jmp 0x401fac
test ebx, 0x4000
je 0x402076
push 6
jmp 0x402038
test ebx, 0x8000
je 0x402082
push 5
jmp 0x402038
test bl, bl
jns 0x40208a
push 0x16
jmp 0x402038
mov edx, dword [ebp - 0x14e0]
mov ecx, 0x4011fc
test bl, 7
je 0x4020b3
cmp dword [ebp - 0x14e4], 0
jne 0x4020ab
mov dword [ebp - 0x14cc], ecx
jmp 0x40210f
mov dword [ebp - 0x14cc], edx
jmp 0x40210f
test ebx, 0x100
je 0x4020d4
cmp dword [ebp - 0x14e4], 0
jne 0x4020cc
mov dword [ebp - 0x14d0], ecx
jmp 0x40210f
mov dword [ebp - 0x14d0], edx
jmp 0x40210f
test ebx, 0x200
je 0x4020f5
cmp dword [ebp - 0x14e4], 0
jne 0x4020ed
mov dword [ebp - 0x14d4], ecx
jmp 0x40210f
mov dword [ebp - 0x14d4], edx
jmp 0x40210f
mov eax, dword [ebp - 0x14e4]
test eax, eax
je 0x40210f
or dword [ebp - 0x14ac], 0x80000000
mov dword [ebp - 0x14b0], edx
mov eax, dword [0x4043a4]
test eax, eax
je 0x401f68
push 0x401410
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14c8], eax
test eax, eax
je 0x401f68
mov esi, 0x4013f8
mov dword [ebp - 0x14b8], 0x20
lea edi, [ebp - 0x14a8]
lea ecx, [ebp - 0x14b8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, esp
xor edi, edi
push edi
push ecx
lea ecx, [ebp - 0x14c4]
push ecx
lea ecx, [ebp - 0x14bc]
push ecx
mov ecx, eax
call dword [0x405130]
call dword [ebp - 0x14c8]
cmp esi, esp
je 0x402182
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
jns 0x402225
push 0x208
lea eax, [ebp - 0x418]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x80040108
je 0x4021ec
cmp esi, 0x80040116
je 0x4021e5
cmp esi, 0x8004011b
je 0x4021de
cmp esi, 0x80070005
je 0x4021d7
xor eax, eax
cmp esi, 0x8007000e
sete al
dec eax
and eax, 0xfffffff7
add eax, 0x7dc
jmp 0x4021f1
mov eax, 0x7dd
jmp 0x4021f1
mov eax, 0x7de
jmp 0x4021f1
mov eax, 0x7df
jmp 0x4021f1
mov eax, 0x7e1
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push eax
push dword [0x40439c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push 0x10
push eax
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x14c0]
jmp 0x401f62
test bl, 0x10
je 0x402251
mov eax, dword [ebp - 0x14c4]
mov edi, esp
xor edx, edx
push edx
push dword [ebp - 0x14bc]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x24]
call dword [0x405130]
call dword [esi + 0x24]
cmp edi, esp
jmp 0x40205c
test bl, 0x40
je 0x402281
mov eax, dword [ebp - 0x14c4]
mov edi, esp
push dword [ebp - 0x14c0]
xor edx, edx
push edx
mov esi, dword [eax]
push edx
push 8
push dword [ebp - 0x14bc]
mov ecx, dword [esi + 0x3c]
push eax
call dword [0x405130]
call dword [esi + 0x3c]
jmp 0x40224a
test bl, 0x20
je 0x4022c7
mov ecx, 0x4011fc
cmp dword [ebp - 0x14e4], edi
je 0x402299
mov ecx, dword [ebp - 0x14e0]
mov eax, dword [ebp - 0x14c4]
mov edi, esp
xor edx, edx
push edx
push ecx
mov esi, dword [eax]
push 0x80000008
push dword [ebp - 0x14c0]
push dword [ebp - 0x14bc]
mov ecx, dword [esi + 0x2c]
push eax
call dword [0x405130]
call dword [esi + 0x2c]
jmp 0x40224a
test bl, 1
je 0x402384
push ecx
push dword [ebp - 0x14cc]
lea ecx, [ebp - 0x14f4]
call fcn.00401b21
test eax, eax
js 0x401f68
mov ecx, 0x4011fa
cmp dword [ebp - 0x14e8], edi
je 0x4022fd
mov ecx, dword [ebp - 0x14f4]
mov eax, dword [ebp - 0x14c4]
mov edi, esp
push ecx
xor edx, edx
push edx
mov esi, dword [eax]
push dword [ebp - 0x14bc]
push eax
mov ecx, dword [esi + 0x28]
call dword [0x405130]
call dword [esi + 0x28]
cmp edi, esp
je 0x402329
mov ecx, 4
int 0x29
test eax, eax
jns 0x401fac
cmp eax, 0x80040113
je 0x401fac
push 0x208
xor edi, edi
lea eax, [ebp - 0x620]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x104
push eax
push 0x7e3
push dword [0x40439c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push 0x10
push eax
lea eax, [ebp - 0x620]
jmp 0x402219
test bl, 4
je 0x40242a
push 9
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401fac
mov esi, esp
and ebx, 8
push ebx
push dword [ebp - 0x14cc]
xor edx, edx
mov ecx, edi
push edx
push dword [ebp - 0x14bc]
call dword [0x405130]
call edi
cmp esi, esp
je 0x4023cf
mov ecx, 4
int 0x29
test eax, eax
jns 0x401fac
cmp eax, 0x80040113
je 0x401fac
push 0x208
xor edi, edi
lea eax, [ebp - 0x828]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x104
push eax
push 0x7e5
push dword [0x40439c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push 0x10
push eax
lea eax, [ebp - 0x828]
jmp 0x402219
test bl, 2
je 0x4024d0
push 8
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401fac
mov esi, esp
and ebx, 8
push ebx
push dword [ebp - 0x14cc]
xor edx, edx
mov ecx, edi
push edx
push dword [ebp - 0x14bc]
call dword [0x405130]
call edi
cmp esi, esp
je 0x402475
mov ecx, 4
int 0x29
test eax, eax
jns 0x401fac
cmp eax, 0x80040113
je 0x401fac
push 0x208
xor edi, edi
lea eax, [ebp - 0xa30]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa30]
push 0x104
push eax
push 0x7e6
push dword [0x40439c]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x210]
push 0x10
push eax
lea eax, [ebp - 0xa30]
jmp 0x402219
test ebx, 0x100
je 0x402519
push 0xa
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401fac
mov esi, esp
mov ecx, edi
push dword [ebp - 0x14d0]
push dword [ebp - 0x14bc]
push dword [ebp - 0x14c4]
push dword [ebp - 0x14c0]
call dword [0x405130]
call edi
jmp 0x40205a
test ebx, 0x200
je 0x401f68
push 0x17
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x401fac
mov esi, esp
mov ecx, edi
push dword [ebp - 0x14d4]
push dword [ebp - 0x14bc]
push dword [ebp - 0x14c0]
call dword [0x405130]
call edi
jmp 0x40205a
xor esi, esi
mov eax, dword [0x40439c]
test eax, eax
je 0x402578
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40439c], esi
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x14e4], esi
call fcn.00401ae4
lea ecx, [ebp - 0x14f4]
mov dword [ebp - 0x14e8], esi
call fcn.00401ae4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004032b0
leave
ret 0x10