Function at 0x4374d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d7c6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [esi], vtable.singleton_class_hd_defines_.0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 4]
xor eax, eax
mov dword [esi], vtable.hd_defines.0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push ebx
mov dword [edi + 0x10], eax
push edi
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x43754e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x437546
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jge 0x43754e
push eax
call fcn.00406170
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], edi
push edi
mov byte [ebp - 0x30], bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x30], 1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
call fcn.0040d9a0
mov ecx, eax
call fcn.00437470
mov byte [ebp - 4], 4
push 0x53508c
push 0x535088
lea ecx, [ebp - 0x18]
call fcn.0041ea10
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], ebx
je 0x437706
lea edx, [ebp - 0x14]
push edx
push ecx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x437706
xor ecx, ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x14], ebx
jle 0x4376ff
lea ecx, [ecx]
mov eax, dword [eax + ecx*4]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409590
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jl 0x4376c6
push 0x531f34
push eax
call fcn.004ec4a7
add esp, 8
cmp eax, ebx
je 0x4376c6
sub eax, dword [ebp - 0x10]
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x4376c6
push edi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004112f0
mov byte [ebp - 4], 6
inc edi
push edi
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x10]
call fcn.004123b0
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
push 4
inc eax
push eax
push ecx
call fcn.004ebd6c
add esp, 0xc
cmp eax, ebx
je 0x437680
mov edx, dword [esi + 0x24]
push 4
inc edx
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
push edx
push eax
call fcn.004ebd6c
add esp, 0xc
cmp eax, ebx
je 0x437680
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
push edx
push eax
lea ecx, [esi + 0x1c]
call fcn.0041f440
inc dword [esi + 0x24]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4376a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
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 0x4376c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4376e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x4375d0
mov edi, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x437729
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret