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

Disassembly:
push 0xffffffffffffffff
push 0x556bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a2184]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
fldz
xor ebx, ebx
push 0x56fd6c
fstp qword [esp + 0x50]
lea ecx, [esp + 0x68]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.00403380
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x70], ebx
mov byte [eax], bl
mov byte [ecx], bl
mov ecx, dword [esp + 0x78]
cmp ecx, ebx
mov byte [edx], bl
jne 0x4180a5
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x418260
cmp dword [esp + 0x7c], ebx
je 0x418084
mov eax, dword [ecx + 0x2c]
mov ecx, dword [ecx + 0x34]
cmp ecx, ebx
mov dword [esp + 0x18], ebx
jle 0x418244
jmp 0x4180c6
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov ecx, dword [eax]
fldz
mov ebp, dword [eax + 8]
fstp qword [esp + 0x30]
mov dword [esp + 0x1c], ecx
push 0x56fd6c
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00403380
mov esi, dword [esp + 0x80]
cmp esi, ebx
mov byte [esp + 0x70], 1
je 0x418172
mov edx, dword [ebp]
mov edx, dword [edx]
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0x70], 2
mov eax, dword [eax]
lea ecx, [esp + 0x28]
mov ebx, eax
push ecx
lea edi, [esp + 0x30]
mov eax, esi
call fcn.00404f80
test eax, eax
jne 0x418132
xor esi, esi
jmp 0x41813e
mov dl, byte [eax + 4]
mov byte [esp + 0x17], dl
mov esi, 1
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418163
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x418172
cmp byte [esp + 0x17], 0
je 0x418207
mov edx, dword [ebp]
mov edx, dword [edx]
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0x70], 3
mov eax, dword [eax]
add ecx, 4
push ecx
lea esi, [esp + 0x34]
mov ebx, eax
call fcn.00404d30
mov esi, eax
mov byte [esp + 0x70], 1
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4181c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x418207
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jl 0x4181db
mov eax, dword [esp + 0x40]
jg 0x4181e7
cmp dword [ebp + 0x1c], eax
jge 0x4181e7
mov ecx, dword [esp + 0x84]
mov byte [ecx], 1
jmp 0x418207
cmp dword [ebp + 0x18], ecx
jne 0x4181fd
cmp dword [ebp + 0x1c], eax
jne 0x4181fd
mov edx, dword [esp + 0x8c]
mov byte [edx], 1
jmp 0x418207
mov eax, dword [esp + 0x88]
mov byte [eax], 1
mov byte [esp + 0x70], 0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41822c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x78]
add eax, 1
cmp eax, dword [ecx + 0x34]
mov dword [esp + 0x18], eax
jl 0x4180c0
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41826c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret