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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x151c
call fcn.004039e0
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.00401b76
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 0x401e20
or ebx, 0xffffffff
jmp 0x4020b0
mov ecx, edi
call fcn.00402ac3
mov dword [0x4043a0], esi
call fcn.00401cee
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], 0x4026c0
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 0x4020b0
mov dword [ebp - 0x14b4], esi
call fcn.00401c77
mov dword [0x4043a4], eax
test eax, eax
jne 0x401f2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4020b0
lea eax, [ebp - 0x14e4]
mov ecx, edi
push eax
lea edx, [ebp - 0x14c8]
call fcn.004026e9
test eax, eax
js 0x4020b0
push ecx
call fcn.004019e0
cmp dword [section..data], 5
mov edx, 0x4000
mov ebx, dword [ebp - 0x14c8]
jbe 0x401ff1
mov ecx, dword [0x40400c]
xor edi, edi
and ecx, edx
mov eax, edi
or eax, ecx
je 0x401ff3
mov ecx, dword [0x404014]
mov eax, ecx
and eax, edx
cmp edi, dword [0x404010]
jne 0x401ff3
cmp eax, ecx
jne 0x401ff3
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 0x401531
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.00401a87
jmp 0x401ff3
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 0x40206e
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 0x4020b2
test ebx, 0x1000
je 0x40212f
push 7
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ad
mov ecx, edi
call dword [0x405130]
mov esi, esp
call edi
cmp esi, esp
je 0x4020a5
mov ecx, 4
int 0x29
test eax, eax
js 0x401f28
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, dword [ebp - 0x14bc]
test ecx, ecx
je 0x4020df
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 0x4020df
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x14c4]
test ecx, ecx
je 0x40210e
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 0x40210e
mov ecx, 4
int 0x29
mov eax, dword [0x4043a4]
test eax, eax
je 0x402668
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [0x4043a4], esi
jmp 0x40266a
test ebx, 0x800
je 0x40216b
push 0xb
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ad
mov ecx, edi
call dword [0x405130]
mov esi, esp
call edi
cmp esi, esp
je 0x402166
mov ecx, 4
int 0x29
jmp 0x4020ad
test ebx, 0x4000
je 0x402177
push 6
jmp 0x402139
test ebx, 0x8000
je 0x402183
push 5
jmp 0x402139
test bl, bl
jns 0x40218b
push 0x16
jmp 0x402139
mov edx, dword [ebp - 0x14e0]
mov ecx, 0x4011fc
test bl, 7
je 0x4021b4
cmp dword [ebp - 0x14e4], 0
jne 0x4021ac
mov dword [ebp - 0x14cc], ecx
jmp 0x402210
mov dword [ebp - 0x14cc], edx
jmp 0x402210
test ebx, 0x100
je 0x4021d5
cmp dword [ebp - 0x14e4], 0
jne 0x4021cd
mov dword [ebp - 0x14d0], ecx
jmp 0x402210
mov dword [ebp - 0x14d0], edx
jmp 0x402210
test ebx, 0x200
je 0x4021f6
cmp dword [ebp - 0x14e4], 0
jne 0x4021ee
mov dword [ebp - 0x14d4], ecx
jmp 0x402210
mov dword [ebp - 0x14d4], edx
jmp 0x402210
mov eax, dword [ebp - 0x14e4]
test eax, eax
je 0x402210
or dword [ebp - 0x14ac], 0x80000000
mov dword [ebp - 0x14b0], edx
mov eax, dword [0x4043a4]
test eax, eax
je 0x402069
push 0x401410
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14c8], eax
test eax, eax
je 0x402069
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 0x402283
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
jns 0x402326
push 0x208
lea eax, [ebp - 0x418]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x80040108
je 0x4022ed
cmp esi, 0x80040116
je 0x4022e6
cmp esi, 0x8004011b
je 0x4022df
cmp esi, 0x80070005
je 0x4022d8
xor eax, eax
cmp esi, 0x8007000e
sete al
dec eax
and eax, 0xfffffff7
add eax, 0x7dc
jmp 0x4022f2
mov eax, 0x7dd
jmp 0x4022f2
mov eax, 0x7de
jmp 0x4022f2
mov eax, 0x7df
jmp 0x4022f2
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 0x402063
test bl, 0x10
je 0x402352
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 0x40215d
test bl, 0x40
je 0x402382
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 0x40234b
test bl, 0x20
je 0x4023cd
cmp dword [ebp - 0x14e4], 0
mov ecx, dword [ebp - 0x14c4]
mov eax, dword [ecx]
mov edi, dword [eax + 0x2c]
mov eax, 0x4011fc
je 0x4023a6
mov eax, dword [ebp - 0x14e0]
mov esi, esp
xor edx, edx
push edx
push eax
push 0x80000008
push dword [ebp - 0x14c0]
push dword [ebp - 0x14bc]
push ecx
mov ecx, edi
call dword [0x405130]
call edi
jmp 0x40215b
test bl, 1
je 0x40248c
push ecx
push dword [ebp - 0x14cc]
lea ecx, [ebp - 0x14f4]
call fcn.00401bf6
test eax, eax
js 0x402069
cmp dword [ebp - 0x14e8], 0
mov ecx, dword [ebp - 0x14c4]
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov eax, 0x4011fa
je 0x40240f
mov eax, dword [ebp - 0x14f4]
mov esi, esp
xor edx, edx
push eax
push edx
push dword [ebp - 0x14bc]
push ecx
mov ecx, edi
call dword [0x405130]
call edi
cmp esi, esp
je 0x402431
mov ecx, 4
int 0x29
test eax, eax
jns 0x4020ad
cmp eax, 0x80040113
je 0x4020ad
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 0x40231a
test bl, 4
je 0x402532
push 9
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ad
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 0x4024d7
mov ecx, 4
int 0x29
test eax, eax
jns 0x4020ad
cmp eax, 0x80040113
je 0x4020ad
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 0x40231a
test bl, 2
je 0x4025d8
push 8
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ad
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 0x40257d
mov ecx, 4
int 0x29
test eax, eax
jns 0x4020ad
cmp eax, 0x80040113
je 0x4020ad
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 0x40231a
test ebx, 0x100
je 0x402621
push 0xa
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ad
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 0x40215b
test ebx, 0x200
je 0x402069
push 0x17
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ad
mov esi, esp
mov ecx, edi
push dword [ebp - 0x14d4]
push dword [ebp - 0x14bc]
push dword [ebp - 0x14c0]
call dword [0x405130]
call edi
jmp 0x40215b
xor esi, esi
mov eax, dword [0x40439c]
test eax, eax
je 0x402680
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40439c], esi
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x14e4], esi
call fcn.00401bb0
lea ecx, [ebp - 0x14f4]
mov dword [ebp - 0x14e8], esi
call fcn.00401bb0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403430
leave
ret 0x10