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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff6c
mov edi, edx
mov esi, eax
mov eax, dword [esi + 0x28]
cmp dword [eax + 8], 1
jge 0x51c94b
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00414398
jmp 0x51cc7e
cmp byte [esi + 0x2c], 0
je 0x51cc77
push 0x477fff00
push 0x477fff00
push 0xc77fff00
push 0xc77fff00
mov eax, edi
call fcn.00414398
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x51cbf3
inc eax
mov dword [esp], eax
xor ebx, ebx
mov eax, dword [esi + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 8]
mov ebp, ebx
cmp eax, ebp
ja 0x51c99e
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 4]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x28], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x28], 3
je 0x51cbe9
mov eax, dword [esi + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp ebp, dword [eax + 8]
jb 0x51c9df
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 8]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x3c], ecx
fld dword [esp + 0x38]
fld dword [edi]
fucompp
wait
fnstsw ax
sahf
jp 0x51ca10
jbe 0x51ca4c
mov eax, dword [esi + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp ebp, dword [eax + 8]
jb 0x51ca25
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0xc]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x40], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x44]
mov dword [edi], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp ebp, dword [eax + 8]
jb 0x51ca61
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x54], ecx
fld dword [esp + 0x50]
fld dword [edi + 8]
fucompp
wait
fnstsw ax
sahf
jae 0x51cace
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
cmp ebp, dword [eax + 8]
jb 0x51caa6
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x5c]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 8]
jb 0x51cae3
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x68], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x6c], ecx
fld dword [esp + 0x6c]
fld dword [edi + 4]
fucompp
wait
fnstsw ax
sahf
jp 0x51cb15
jbe 0x51cb52
mov eax, dword [esi + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp ebp, dword [eax + 8]
jb 0x51cb2a
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x70], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x74], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x78]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
cmp ebp, dword [eax + 8]
jb 0x51cb67
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x80], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x84], ecx
fld dword [esp + 0x84]
fld dword [edi + 0xc]
fucompp
wait
fnstsw ax
sahf
jae 0x51cbe9
mov eax, dword [esi + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
cmp ebp, dword [eax + 8]
jb 0x51cbb5
call fcn.004423e4
lea eax, [ebx + ebx*2]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x88], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [esp + 0x8c], ecx
mov ecx, dword [edx + eax*4 + 8]
mov dword [esp + 0x90], ecx
mov eax, dword [esp + 0x90]
mov dword [edi + 0xc], eax
inc ebx
dec dword [esp]
jne 0x51c985
mov eax, edi
call fcn.00414a50
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0
push 0
push 0
push 0x3ff5
push 0x83126e97
push 0x8d4fdf3b
call fcn.00445848
test al, al
je 0x51cc2b
fld xword [0x51cc8c]
fadd dword [edi]
fstp dword [edi + 8]
wait
mov eax, edi
call fcn.00414a2c
add esp, 0xfffffff4
fstp xword [esp]
wait
push 0
push 0
push 0
push 0x3ff5
push 0x83126e97
push 0x8d4fdf3b
call fcn.00445848
test al, al
je 0x51cc64
fld xword [0x51cc8c]
fadd dword [edi + 4]
fstp dword [edi + 0xc]
wait
push esi
mov eax, edi
lea edi, [esi + 0x30]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov byte [esi + 0x2c], 0
jmp 0x51cc7e
add esi, 0x30
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x94
pop ebp
pop edi
pop esi
pop ebx
ret