Function at 0x41e9b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427566
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x436024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x244], edi
mov dword [esi + 0x248], edi
mov dword [esi + 0x24c], edi
mov ebx, 2
mov byte [esi + 0x23d], 1
mov dword [esi + 0x22c], edi
mov dword [esi + 0x230], edi
mov byte [esi + 0x23c], 1
mov dword [esi + 0x234], ebx
mov dword [esi + 0x238], 0x3e8
mov byte [esi + 0x23e], 1
mov byte [esi + 0x23f], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.00405e20
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00419df0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ea89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
cmp ecx, edi
mov ebx, 1
mov dword [ebp - 0x14], ebx
je 0x41eb75
mov eax, dword [ebp - 0x20]
sub eax, ecx
sar eax, 2
cmp eax, ebx
mov dword [ebp - 0x18], eax
jbe 0x41eb75
jmp 0x41eab6
mov ecx, dword [ebp - 0x24]
xor edi, edi
cmp ecx, edi
je 0x41eac6
mov eax, dword [ebp - 0x20]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x41eacc
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ecx + ebx*4]
test edi, edi
je 0x41eb63
cmp word [edi], 0x2f
jne 0x41eb08
movzx edx, word [edi + 2]
push edx
call dword [sym.imp.MSVCR80.dll_iswdigit]
add esp, 4
test eax, eax
je 0x41eb08
cmp word [edi + 4], 0
jne 0x41eb08
movzx eax, word [edi + 2]
sub eax, 0x30
mov dword [esi + 0x234], eax
jmp 0x41eb63
mov ebx, dword [sym.imp.MSVCR80.dll_wcsncmp]
push 0xa
push str._loglevel:
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x41eb34
add edi, 0x14
push edi
call dword [sym.imp.MSVCR80.dll__wtoi]
add esp, 4
mov dword [esi + 0x234], eax
jmp 0x41eb63
push 8
push str._logbuf:
push edi
call ebx
add esp, 0xc
test eax, eax
jne 0x41eb63
lea ebx, [esi + 0x238]
mov eax, ebx
mov ecx, edi
call fcn.0041a080
add dword [ebx], 8
cmp dword [ebx], 1
ja 0x41eb63
mov byte [esi + 0x23d], 0
mov ebx, dword [ebp - 0x14]
add ebx, 1
cmp ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
jb 0x41eab1
call fcn.0041e8f0
test eax, eax
jne 0x41eb84
mov byte [esi + 0x23c], al
mov ebx, esi
call fcn.0041e660
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x41ebd1
mov eax, dword [ebp - 0x20]
cmp edi, eax
mov ebx, eax
je 0x41ebc8
nop
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ebbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, ebx
jne 0x41eba0
mov edi, dword [ebp - 0x24]
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4