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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x151c
call fcn.00403a30
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.00401bb6
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 0x401e60
or ebx, 0xffffffff
jmp 0x4020f0
mov ecx, edi
call fcn.00402b13
mov dword [0x4043a0], esi
call fcn.00401d2e
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], 0x402710
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, 0x40136c
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 0x4020f0
mov dword [ebp - 0x14b4], esi
call fcn.00401cb7
mov dword [0x4043a4], eax
test eax, eax
jne 0x401f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x4020f0
lea eax, [ebp - 0x14e4]
mov ecx, edi
push eax
lea edx, [ebp - 0x14c8]
call fcn.00402739
test eax, eax
js 0x4020f0
push ecx
call fcn.00401a20
cmp dword [section..data], 5
mov edx, 0x4000
mov ebx, dword [ebp - 0x14c8]
jbe 0x402031
mov ecx, dword [0x40400c]
xor edi, edi
and ecx, edx
mov eax, edi
or eax, ecx
je 0x402033
mov ecx, dword [0x404014]
mov eax, ecx
and eax, edx
cmp edi, dword [0x404010]
jne 0x402033
cmp eax, ecx
jne 0x402033
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 0x401569
push section..data
mov dword [ebp - 0x1464], edi
mov dword [ebp - 0x1460], ecx
mov dword [ebp - 0x145c], edi
mov dword [ebp - 0x1478], 0x4013bc
mov dword [ebp - 0x1474], edi
mov dword [ebp - 0x1470], 0xc
mov dword [ebp - 0x146c], edi
call fcn.00401ac7
jmp 0x402033
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 0x4020ae
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 0x4020f2
test ebx, 0x1000
je 0x40216f
push 7
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ed
mov ecx, edi
call dword [0x405130]
mov esi, esp
call edi
cmp esi, esp
je 0x4020e5
mov ecx, 4
int 0x29
test eax, eax
js 0x401f68
xor ebx, ebx
inc ebx
xor edi, edi
mov ecx, dword [ebp - 0x14bc]
test ecx, ecx
je 0x40211f
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 0x40211f
mov ecx, 4
int 0x29
mov ecx, dword [ebp - 0x14c4]
test ecx, ecx
je 0x40214e
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 0x40214e
mov ecx, 4
int 0x29
mov eax, dword [0x4043a4]
test eax, eax
je 0x4026b0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov dword [0x4043a4], esi
jmp 0x4026b2
test ebx, 0x800
je 0x4021ab
push 0xb
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ed
mov ecx, edi
call dword [0x405130]
mov esi, esp
call edi
cmp esi, esp
je 0x4021a6
mov ecx, 4
int 0x29
jmp 0x4020ed
test ebx, 0x4000
je 0x4021b7
push 6
jmp 0x402179
test ebx, 0x8000
je 0x4021c3
push 5
jmp 0x402179
test bl, bl
jns 0x4021cb
push 0x16
jmp 0x402179
mov edx, dword [ebp - 0x14e0]
mov ecx, 0x40120c
test bl, 7
je 0x4021f4
cmp dword [ebp - 0x14e4], 0
jne 0x4021ec
mov dword [ebp - 0x14cc], ecx
jmp 0x402250
mov dword [ebp - 0x14cc], edx
jmp 0x402250
test ebx, 0x100
je 0x402215
cmp dword [ebp - 0x14e4], 0
jne 0x40220d
mov dword [ebp - 0x14d0], ecx
jmp 0x402250
mov dword [ebp - 0x14d0], edx
jmp 0x402250
test ebx, 0x200
je 0x402236
cmp dword [ebp - 0x14e4], 0
jne 0x40222e
mov dword [ebp - 0x14d4], ecx
jmp 0x402250
mov dword [ebp - 0x14d4], edx
jmp 0x402250
mov eax, dword [ebp - 0x14e4]
test eax, eax
je 0x402250
or dword [ebp - 0x14ac], 0x80000000
mov dword [ebp - 0x14b0], edx
mov eax, dword [0x4043a4]
test eax, eax
je 0x4020a9
push 0x401420
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14c8], eax
test eax, eax
je 0x4020a9
mov esi, 0x401408
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 0x4022c3
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
jns 0x40236e
push 0x208
lea eax, [ebp - 0x418]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp esi, 0x80004005
je 0x402335
cmp esi, 0x80040108
je 0x40232e
cmp esi, 0x80040116
je 0x402327
cmp esi, 0x8004011b
je 0x402320
cmp esi, 0x80070005
je 0x402319
cmp esi, 0x8007000e
jne 0x402335
mov eax, 0x7dc
jmp 0x40233a
mov eax, 0x7dd
jmp 0x40233a
mov eax, 0x7de
jmp 0x40233a
mov eax, 0x7df
jmp 0x40233a
mov eax, 0x7e1
jmp 0x40233a
mov eax, 0x7d3
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 0x4020a3
test bl, 0x10
je 0x40239a
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 0x40219d
test bl, 0x40
je 0x4023ca
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 0x402393
test bl, 0x20
je 0x402415
cmp dword [ebp - 0x14e4], 0
mov ecx, dword [ebp - 0x14c4]
mov eax, dword [ecx]
mov edi, dword [eax + 0x2c]
mov eax, 0x40120c
je 0x4023ee
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 0x40219b
test bl, 1
je 0x4024d4
push ecx
push dword [ebp - 0x14cc]
lea ecx, [ebp - 0x14f4]
call fcn.00401c36
test eax, eax
js 0x4020a9
cmp dword [ebp - 0x14e8], 0
mov ecx, dword [ebp - 0x14c4]
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov eax, 0x40120a
je 0x402457
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 0x402479
mov ecx, 4
int 0x29
test eax, eax
jns 0x4020ed
cmp eax, 0x80040113
je 0x4020ed
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 0x402362
test bl, 4
je 0x40257a
push 9
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ed
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 0x40251f
mov ecx, 4
int 0x29
test eax, eax
jns 0x4020ed
cmp eax, 0x80040113
je 0x4020ed
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 0x402362
test bl, 2
je 0x402620
push 8
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ed
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 0x4025c5
mov ecx, 4
int 0x29
test eax, eax
jns 0x4020ed
cmp eax, 0x80040113
je 0x4020ed
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 0x402362
test ebx, 0x100
je 0x402669
push 0xa
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ed
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 0x40219b
test ebx, 0x200
je 0x4020a9
push 0x17
push dword [0x4043a4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4020ed
mov esi, esp
mov ecx, edi
push dword [ebp - 0x14d4]
push dword [ebp - 0x14bc]
push dword [ebp - 0x14c0]
call dword [0x405130]
call edi
jmp 0x40219b
xor esi, esi
mov eax, dword [0x40439c]
test eax, eax
je 0x4026c8
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40439c], esi
lea ecx, [ebp - 0x14e0]
mov dword [ebp - 0x14e4], esi
call fcn.00401bf0
lea ecx, [ebp - 0x14f4]
mov dword [ebp - 0x14e8], esi
call fcn.00401bf0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403480
leave
ret 0x10