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

Disassembly:
push 0xffffffffffffffff
push 0x44cd30
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4584e4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x74]
mov esi, dword [eax + 0x14]
xor edi, edi
lea ecx, [edx + edx*2]
lea ebp, [esi + ecx*8]
xor esi, esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov ebx, dword [esp + 0x78]
xor ecx, ecx
cmp ebx, edi
mov dword [esp + 0x6c], 1
mov dword [esp + 0x14], ecx
jle 0x405be1
fld qword [esp + 0x7c]
cmp ecx, ebx
mov edx, ecx
jge 0x405ab9
lea eax, [ecx + ecx*2]
mov edi, dword [ebp + eax*8 + 0x10]
lea eax, [ebp + eax*8 + 0x10]
cmp dword [eax], edi
jne 0x405ab5
inc ecx
add eax, 0x18
cmp ecx, ebx
jl 0x405aa9
mov dword [esp + 0x14], ecx
mov eax, ecx
sub eax, edx
cmp eax, 2
jl 0x405bd5
lea edx, [edx + edx*2]
lea edi, [ebp + edx*8]
jne 0x405b3a
lea eax, [esi + esi*2]
test esi, esi
jle 0x405aef
lea eax, [ebp + eax*8 - 8]
xor edx, edx
cmp dword [eax], 0xfffffc16
sete dl
add edx, 0xfffffc13
mov dword [eax], edx
jmp 0x405b10
mov edx, dword [edi]
lea eax, [ebp + eax*8]
mov dword [eax], edx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov edx, dword [edi + 8]
mov dword [eax + 8], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [edi + 0x10]
inc esi
mov dword [eax + 0x10], edx
mov edx, dword [edi + 0x18]
lea eax, [esi + esi*2]
lea eax, [ebp + eax*8]
mov dword [eax], edx
mov edx, dword [edi + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x20]
mov dword [eax + 8], edx
mov edx, dword [edi + 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [edi + 0x28]
inc esi
mov dword [eax + 0x10], edx
jmp 0x405bcd
sub esp, 0x10
fst qword [esp + 8]
lea ecx, [esp + 0x44]
fstp qword [esp]
push eax
push edi
call fcn.00405490
cmp eax, 2
jl 0x405bd7
xor edx, edx
lea ebx, [eax + esi]
test esi, esi
jle 0x405b83
lea eax, [esi + esi*2]
xor ecx, ecx
cmp dword [ebp + eax*8 - 8], 0xfffffc16
lea eax, [ebp + eax*8 - 8]
sete cl
mov edx, 1
add ecx, 0xfffffc13
mov dword [eax], ecx
dec ebx
cmp esi, ebx
jge 0x405bbf
lea eax, [esi + esi*2]
lea edx, [edx + edx*2]
lea ecx, [ebp + eax*8]
lea eax, [edi + edx*8]
mov edx, ebx
sub edx, esi
mov esi, dword [eax]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [eax + 8]
mov dword [ecx + 8], esi
mov esi, dword [eax + 0xc]
mov dword [ecx + 0xc], esi
mov esi, dword [eax + 0x10]
mov dword [ecx + 0x10], esi
add eax, 0x18
add ecx, 0x18
sub edx, 1
jne 0x405b98
fld qword [esp + 0x7c]
mov ecx, dword [esp + 0x14]
mov esi, ebx
mov ebx, dword [esp + 0x78]
cmp ecx, ebx
jl 0x405a98
fstp st(0)
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
xor edi, edi
mov ebp, dword [eax + 0x14]
lea ecx, [esi + edx]
lea esi, [eax + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov edi, dword [esi + 8]
mov edx, edi
sub edx, ebp
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jbe 0x405c2e
lea edx, [esp + 0x1c]
push edx
sub ecx, eax
push ecx
push edi
mov ecx, esi
call fcn.004024c0
jmp 0x405c5d
jae 0x405c5d
lea eax, [ecx + ecx*2]
lea eax, [ebp + eax*8]
cmp eax, edi
je 0x405c5d
mov byte [esp + 0x78], 0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push ecx
push eax
push edi
push edi
call fcn.00401f20
add esp, 0x18
mov dword [esi + 8], eax
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, esi
je 0x405c70
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x34], esi
cmp eax, esi
je 0x405c91
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10