Function at 0x403610
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x43a608
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5dc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [ebp + 0xa8], ebx
call fcn.004077c6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40365d
push 0x80004005
call fcn.00402320
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
call fcn.004077c6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40368b
push 0x80004005
call fcn.00402320
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [ebp + 0xac]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00402b60
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, ebx
jne 0x4036be
xor ecx, ecx
jmp 0x4036d2
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4036c3
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00402990
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x403781
mov ecx, dword [esp + 0x2c]
cmp dword [ecx - 0xc], ebx
jl 0x403785
push esi
push ecx
call fcn.00423b3e
add esp, 8
cmp eax, ebx
je 0x403781
mov ecx, dword [esp + 0x2c]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x403785
mov ecx, dword [esi - 0xc]
lea ecx, [ecx + eax + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x34]
call fcn.00403c40
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 2
call fcn.00402b60
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40375b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x2c]
call fcn.004020d0
mov edi, eax
call fcn.00402150
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
cmp ecx, 4
jge 0x40379e
mov byte [esp + 0x24], 0
jmp 0x40383f
mov ecx, dword [esp + 0x2c]
lea eax, [ecx - 0x10]
mov byte [esp + 0x24], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40384f
cmp ecx, 3
jge 0x4037ad
push 0x80070057
call fcn.00402320
movzx ecx, word [eax + 6]
movsx ecx, cl
xor edx, edx
sub ecx, 0x30
cmp ecx, 1
setne dl
mov dword [ebp + 0xbc], edx
cmp dword [eax - 0xc], 1
jge 0x4037d5
push 0x80070057
call fcn.00402320
movzx ecx, word [eax + 2]
movsx ecx, cl
add ecx, 0xffffffd0
xor edx, edx
cmp ecx, edx
mov dword [ebp + 0xa8], ecx
jl 0x40383b
cmp ecx, 2
jg 0x40383b
add eax, 0xfffffff0
mov byte [esp + 0x24], dl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x403881
mov byte [esp + 0x24], dl
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40385b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40387f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4