Function at 0x415870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x465ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x485f50]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485f50]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov esi, ecx
lea ebp, [esi + 0x20]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4158bd
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
lea ebx, [esi + 4]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ecx + 4], ecx
mov dword [esp + 0x78], 0
mov dword [ebx + 0x18], 0
cmp eax, dword [ebx + 0x14]
je 0x4158f3
mov esi, dword [eax]
push eax
call fcn.0041f6a2
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x14]
jne 0x4158e1
test edi, edi
jne 0x415905
test ebp, ebp
je 0x415ab7
push ebp
jmp 0x415ab1
mov eax, edi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415920
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.00408130
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov byte [esp + 0x78], 1
mov eax, edx
cmp ecx, 0x10
jae 0x41594c
lea eax, [esp + 0x54]
mov ebp, dword [esp + 0x64]
lea edi, [eax + ebp]
test edi, edi
je 0x415977
mov eax, edx
cmp ecx, 0x10
jae 0x415962
lea eax, [esp + 0x54]
cmp eax, edi
ja 0x415977
mov eax, edx
cmp ecx, 0x10
jae 0x415971
lea eax, [esp + 0x54]
add eax, ebp
cmp edi, eax
jbe 0x415988
call fcn.0043c958
mov ecx, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x54]
cmp ecx, 0x10
jb 0x415ad8
mov esi, edx
test edx, edx
je 0x4159b7
mov eax, edx
cmp ecx, 0x10
jae 0x4159a2
lea eax, [esp + 0x54]
cmp eax, esi
ja 0x4159b7
mov eax, edx
cmp ecx, 0x10
jae 0x4159b1
lea eax, [esp + 0x54]
add eax, ebp
cmp esi, eax
jbe 0x4159c4
call fcn.0043c958
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
mov eax, esi
cmp esi, edi
je 0x4159e5
lea ebx, [ebx]
cmp byte [eax], 0x2c
jne 0x4159d8
mov byte [eax], 0x3b
inc eax
cmp eax, edi
jne 0x4159d0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x54]
cmp ecx, 0x10
jae 0x4159ee
lea edx, [esp + 0x54]
mov edi, 0xf
xor ebp, ebp
mov eax, edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415a07
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00408130
push 0x46b920
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x84], 2
call fcn.0041c700
add esp, 0xc
mov byte [esp + 0x78], 3
cmp ebx, eax
je 0x415a5a
mov ecx, dword [eax + 0x14]
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [ecx]
push esi
push ecx
push eax
push edx
push eax
mov ecx, ebx
call fcn.00415810
lea ecx, [esp + 0x34]
call fcn.00404010
mov edx, dword [esp + 0x34]
push edx
call fcn.0041f6a2
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x30], esi
jb 0x415a88
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041f6a2
add esp, 4
cmp dword [esp + 0x68], esi
jb 0x415a9b
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041f6a2
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebp
mov byte [esp + 0x54], 0
cmp eax, ebp
je 0x415ab7
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0043c3a4
add esp, 0x68
ret 4
lea esi, [esp + 0x54]
jmp 0x415997