Function at 0x412dd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497028
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x4c51d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401c40
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [0x4cfb50]
cmp ecx, esi
je 0x412e6d
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], esi
jl 0x412e6d
push ecx
push eax
call fcn.0046f9a4
add esp, 8
cmp eax, esi
je 0x412e6d
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x412e6d
mov dword [ebp - 4], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push 0x10
mov dword [ebp - 0x40], esi
call fcn.0046eb9e
add esp, 4
cmp eax, esi
je 0x41343b
mov dword [eax], eax
mov dword [ebp - 0x44], eax
mov dword [eax + 4], eax
lea ecx, [ebp - 0x18]
mov ebx, 2
push ecx
mov byte [ebp - 4], bl
call fcn.004264c0
push eax
lea edi, [ebp - 0x44]
call fcn.00426510
test byte [0x4d01ac], 1
mov esi, eax
lea edi, [ebx - 1]
jne 0x412eeb
or dword [0x4d01ac], edi
mov byte [ebp - 4], 3
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
xor edx, edx
cmp esi, edi
setne dl
mov ecx, 0x4d0128
push edx
call fcn.004304b0
test byte [0x4d01ac], 1
jne 0x412f25
or dword [0x4d01ac], edi
mov byte [ebp - 4], 4
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
xor eax, eax
cmp esi, ebx
setne al
mov ecx, 0x4d0128
push eax
call fcn.00430500
test byte [0x4d01ac], 1
jne 0x412f5f
or dword [0x4d01ac], edi
mov byte [ebp - 4], 5
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x18]
mov edi, 0x4d0138
call fcn.00404ef0
xor esi, esi
push 0x10
mov dword [ebp - 0x64], esi
call fcn.0046eb9e
add esp, 4
cmp eax, esi
je 0x413417
mov dword [eax], eax
mov dword [ebp - 0x68], eax
mov dword [eax + 4], eax
mov byte [ebp - 4], 6
call fcn.004264c0
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00426c60
push 0x10
mov dword [ebp - 0x58], esi
call fcn.0046eb9e
add esp, 4
cmp eax, esi
je 0x4133f3
mov dword [ebp - 0x5c], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x5c]
mov dword [eax + 4], eax
mov byte [ebp - 4], 7
push 0x10
mov dword [ebp - 0x4c], esi
call fcn.0046eb9e
add esp, 4
cmp eax, esi
je 0x4133cf
mov dword [ebp - 0x50], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x50]
mov dword [eax + 4], eax
mov byte [ebp - 4], 8
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x10], 1
call fcn.004264c0
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
sub esp, 0x14
mov dword [ebp - 0x34], ecx
mov ecx, esp
lea edx, [ebp - 0x10]
mov dword [ecx], edx
mov edx, dword [ebp - 0x44]
lea edi, [ebp - 0x5c]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x34]
lea esi, [ebp - 0x50]
mov dword [ecx + 0xc], esi
push edx
lea ebx, [ebp - 0x14]
mov dword [ecx + 0x10], ebx
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.0042b7b0
add esp, 0x20
call fcn.004264c0
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00426f10
mov byte [ebp - 4], 9
call fcn.004264c0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.00426f10
mov byte [ebp - 4], 0xa
call fcn.004264c0
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00426f10
mov byte [ebp - 4], 0xb
call fcn.004264c0
mov edx, esi
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00426f10
mov byte [ebp - 4], 0xc
call fcn.004264c0
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00426f10
mov bl, 0xd
mov byte [ebp - 4], bl
test byte [0x4d01ac], 1
mov esi, 1
jne 0x4130cd
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0xe
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x30]
mov edi, 0x4d013c
call fcn.00404ef0
test byte [0x4d01ac], 1
jne 0x413102
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0xf
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x2c]
mov edi, 0x4d0140
call fcn.00404ef0
test byte [0x4d01ac], 1
jne 0x413137
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x10
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x24]
mov edi, 0x4d0148
call fcn.00404ef0
test byte [0x4d01ac], 1
jne 0x41316c
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x11
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x28]
mov edi, 0x4d0144
call fcn.00404ef0
test byte [0x4d01ac], 1
jne 0x4131a1
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x12
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
lea eax, [ebp - 0x20]
mov edi, 0x4d014c
call fcn.00404ef0
test byte [0x4d01ac], 1
jne 0x4131d6
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x13
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0x4a59e4
mov ecx, 0x4d0158
call fcn.00401b40
test byte [0x4d01ac], 1
jne 0x41320f
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x14
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0x4a59e4
mov ecx, 0x4d0150
call fcn.00401b40
test byte [0x4d01ac], 1
jne 0x413248
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x15
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
push 0
push 0x4a59e4
mov ecx, 0x4d0154
call fcn.00401b40
test byte [0x4d01ac], 1
jne 0x413281
or dword [0x4d01ac], esi
mov byte [ebp - 4], 0x16
call fcn.00430370
push 0x49d150
call fcn.0046eb48
add esp, 4
mov byte [ebp - 4], bl
mov ecx, 0x4d0128
call fcn.0046d280
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4132f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413317
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41333a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [ebp - 0x50]
mov byte [ebp - 4], 0x17
call fcn.00413e80
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0046e87a
add esp, 4
lea ebx, [ebp - 0x5c]
mov byte [ebp - 4], 0x18
call fcn.00413e80
mov edx, dword [ebp - 0x5c]
push edx
call fcn.0046e87a
add esp, 4
lea ebx, [ebp - 0x68]
mov byte [ebp - 4], 0x19
call fcn.00413e80
mov eax, dword [ebp - 0x68]
push eax
call fcn.0046e87a
add esp, 4
lea ebx, [ebp - 0x44]
mov byte [ebp - 4], 0x1a
call fcn.00413e80
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0046e87a
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4133bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
jmp 0x412e42
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x38], esi
call fcn.0046ee85
push 0x4b631c
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], vtable.std::bad_alloc.0
call fcn.00472280
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x34], esi
call fcn.0046ee85
push 0x4b631c
lea ecx, [ebp - 0x80]
push ecx
mov dword [ebp - 0x80], vtable.std::bad_alloc.0
call fcn.00472280
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x38], esi
call fcn.0046ee85
push 0x4b631c
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], vtable.std::bad_alloc.0
call fcn.00472280
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x34], esi
call fcn.0046ee85
push 0x4b631c
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x80], vtable.std::bad_alloc.0
call fcn.00472280
int3