Function at 0x4071c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 8]
test edx, edx
je 0x4071fd
cmp word [edx], 0
jne 0x407208
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov eax, dword [ebp - 0x20]
test edx, edx
je 0x4075d0
cmp word [edx], 0
je 0x4075d0
mov ecx, edx
lea edi, [eax + 0x34]
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407222
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403910
mov ecx, edi
call fcn.00407e70
mov ecx, eax
call fcn.00407dc0
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 0x1c], 0
push eax
call fcn.00406b00
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
push 0
push 0x41
push dword [edi]
call fcn.004a7d30
add esp, 0x10
movzx esi, ax
call fcn.004e817d
mov ecx, eax
test ecx, ecx
jne 0x40728d
push 0x80004005
call fcn.00403650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
mov eax, esi
push eax
push eax
lea eax, [ebp - 0x28]
push str._c_c
push eax
call fcn.00407a60
mov esi, dword [ebp - 0x28]
add esp, 0x10
push 1
push esi
lea eax, [ebp - 0x1c]
push 0x547154
push eax
call fcn.004a47f0
add esp, 0x10
test eax, eax
jne 0x4072b4
mov edx, dword [edi]
or edi, 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov ebx, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov dword [eax + 0x38], 0
cmp word [ebx], 0x20
jne 0x4072ff
add ebx, 2
cmp word [ebx], 0x20
je 0x4072f6
cmp word [ebx], 0
je 0x407596
mov eax, ebx
mov dword [ebp - 0x18], 0
sub eax, ecx
mov dword [ebp - 0x14], 0
sar eax, 1
lea eax, [edx + eax*2]
mov dword [ebp - 0x30], eax
call fcn.004e817d
test eax, eax
je 0x407283
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
movzx eax, word [ebx]
sub eax, 0x22
je 0x40744b
sub eax, 0xb
je 0x40738c
sub eax, 2
je 0x40738c
push 0
push 0xffffffffffffffff
push 0x20
push ebx
call fcn.0049c290
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x407415
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407375
sub eax, edx
sar eax, 1
lea edi, [ebx + eax*2]
jmp 0x40746e
push 0
push 0xffffffffffffffff
add ebx, 2
mov dword [ebp - 0x18], 1
push 0x547168
push ebx
call fcn.0049c2d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4073ca
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4073b3
sub eax, edx
sar eax, 1
lea edi, [ebx + eax*2]
jmp 0x40746e
movzx eax, word [edi]
cmp eax, 0x20
je 0x407415
cmp eax, 0x3d
je 0x4073e3
mov dword [ebp - 0x24], 0
jmp 0x40755f
add edi, 2
cmp word [edi], 0x22
jne 0x40741d
push edi
call fcn.004a7c20
mov edi, eax
add esp, 4
test edi, edi
jne 0x407412
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00403400
or edi, 0xffffffff
jmp 0x407580
add edi, 2
mov eax, edi
sub eax, ebx
sar eax, 1
jmp 0x40746e
push 0
push 0xffffffffffffffff
push 0x20
push edi
call fcn.0049c290
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x407415
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407437
sub eax, edx
sar eax, 1
lea edi, [ebx + eax*2]
jmp 0x40746e
push ebx
call fcn.004a7c20
mov edi, eax
add esp, 4
test edi, edi
jne 0x407462
mov dword [ebp - 0x24], eax
jmp 0x40755f
add ebx, 2
mov eax, edi
sub eax, ebx
sar eax, 1
add edi, 2
push eax
push ebx
lea ecx, [ebp - 0x14]
call fcn.00403910
test esi, esi
je 0x4074b8
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jl 0x4074b8
push esi
push eax
call fcn.005099b9
add esp, 8
test eax, eax
je 0x4074b8
sub eax, dword [ebp - 0x14]
sar eax, 1
js 0x4074b8
nop word [eax + eax]
push 1
push 0x547170
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004a47f0
add esp, 0x10
test eax, eax
jne 0x4074a0
cmp word [edi], 0x20
jne 0x4074c9
nop
add edi, 2
cmp word [edi], 0x20
je 0x4074c0
xor ebx, ebx
cmp word [edi], bx
sete bl
cmp dword [ebp - 0x2c], 0
jne 0x4074e3
mov dword [ebp - 0x2c], 1
jmp 0x40755d
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + 0x3c]
call fcn.00406a00
cmp dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
push edx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
je 0x40750d
call dword [eax + 0x10]
jmp 0x407510
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x3c]
cmp dword [eax - 0xc], 0
je 0x407528
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x40755d
cmp dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
je 0x407537
add ecx, 0xc
jmp 0x40753a
add ecx, 0x20
push dword [ecx + 8]
call fcn.004f1c05
cmp dword [ebp - 0x24], 0
mov eax, 1
mov ecx, dword [ebp - 0x20]
cmove ebx, eax
push ebx
push dword [ebp - 0x18]
mov eax, dword [ecx]
push dword [ebp - 0x14]
call dword [eax + 8]
mov ebx, edi
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407580
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
inc dword [eax + 0x38]
cmp dword [ebp - 0x24], 0
jne 0x4072f0
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4075b1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4075d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret 4