Function at 0x4050a0
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5068bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x884
push ebx
push ebp
push esi
mov dword [esp + 0x14], ecx
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27a]
mov word [esp + 0x278], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x482]
mov word [esp + 0x480], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x72]
mov word [esp + 0x70], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x278]
mov dword [esp + 0x890], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x480]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x8a4]
cmp edi, ebp
je 0x40515e
push 0x103
lea eax, [esp + 0x27c]
push edi
push eax
call fcn.004353c4
add esp, 0xc
mov ebx, dword [esp + 0x8a8]
cmp ebx, ebp
je 0x40517f
push 0x103
lea ecx, [esp + 0x484]
push ebx
push ecx
call fcn.004353c4
add esp, 0xc
mov esi, dword [esp + 0x8ac]
cmp esi, ebp
je 0x40519d
push 0x103
lea edx, [esp + 0x74]
push esi
push edx
call fcn.004353c4
add esp, 0xc
mov dword [esp + 0x14], ebp
call fcn.0047a6b0
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x4051ef
mov ecx, esi
lea eax, [esp + 0x14]
neg ecx
push eax
lea edx, [esp + 0x74]
sbb ecx, ecx
mov eax, ebx
push ebp
and ecx, edx
push 2
push ecx
neg eax
sbb eax, eax
lea ecx, [esp + 0x490]
and eax, ecx
lea edx, [esp + 0x288]
neg edi
sbb edi, edi
push eax
and edi, edx
push edi
call dword [0x5569bc]
test eax, eax
jne 0x40534d
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5567b4], ebp
je 0x405338
cmp dword [esp + 0x10], ebp
jne 0x405216
cmp eax, 0x522
jne 0x405338
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.00454fb0
mov ecx, 0x5566f0
mov dword [esp + 0x89c], ebp
call fcn.00401790
test eax, eax
jne 0x405249
push str._NotFirst
lea ecx, [esp + 0x14]
call fcn.00456460
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x68a]
mov word [esp + 0x688], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x68c]
push eax
push ecx
call fcn.004353c4
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x3c]
add esp, 0xc
rep stosd dword es:[edi], eax
xor edx, edx
lea eax, [esp + 0x1c]
neg ebx
push eax
lea eax, [esp + 0x484]
sbb ebx, ebx
lea ecx, [esp + 0x30]
and ebx, eax
mov dword [esp + 0x24], edx
neg esi
push ecx
mov dword [esp + 0x2c], edx
sbb esi, esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], edx
and esi, ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x690]
push edx
lea eax, [esp + 0x284]
mov edx, dword [ecx + 0xc]
push ebx
neg edx
sbb edx, edx
push esi
and edx, eax
mov dword [esp + 0x30], ebp
push edx
mov dword [esp + 0x44], 0x44
call fcn.00405460
test eax, eax
je 0x405324
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.004565c0
mov ecx, dword [esp + 0x1c]
mov dword [0x5567b8], 1
mov dword [0x5567bc], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x89c], 0xffffffff
call fcn.00455820
xor eax, eax
jmp 0x405379
lea ecx, [esp + 0x10]
mov dword [esp + 0x89c], 0xffffffff
call fcn.00455820
cmp dword [esp + 0x14], ebp
jne 0x40534d
mov dword [esp + 0x89c], 0xffffffff
xor eax, eax
jmp 0x405379
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
call fcn.004053a0
mov esi, eax
cmp esi, ebp
je 0x40536c
mov dword [esp + 0x89c], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x894]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x890
ret 0xc