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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x10]
sub esp, 0xbc
test ecx, ecx
push ebx
push ebp
push esi
push edi
jne 0x51bfa5
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xbc
ret
mov edi, dword [esp + 0xdc]
mov eax, dword [edi]
mov ebp, dword [edi + 8]
cmp eax, ebp
jge 0x51bfbd
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jl 0x51bfe2
cmp eax, 0xffffffff
jne 0x51bfe2
mov ebx, dword [esp + 0xd0]
mov edx, dword [ebx + 8]
mov ebp, dword [ebx + 0xc]
xor eax, eax
mov esi, edi
mov dword [esi], eax
xor ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ebp
jmp 0x51c020
mov ebx, dword [esp + 0xd0]
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
xor edx, edx
test eax, eax
setl dl
dec edx
and eax, edx
mov dword [edi], eax
mov eax, dword [edi + 4]
xor edx, edx
test eax, eax
setl dl
dec edx
and eax, edx
cmp ebp, esi
mov dword [edi + 4], eax
jg 0x51c011
mov esi, ebp
mov eax, dword [edi + 0xc]
cmp eax, ecx
mov dword [edi + 8], esi
jle 0x51c01d
mov eax, ecx
mov dword [edi + 0xc], eax
mov eax, dword [edi]
cmp eax, dword [edi + 8]
jge 0x51c02f
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jl 0x51c03c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret
mov esi, dword [esp + 0xd8]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x34], eax
mov al, byte [esp + 0xe0]
test al, al
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x34], edx
mov ecx, esi
je 0x51c08f
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x8c]
push eax
call fcn.0050ec90
mov ecx, eax
call fcn.0050f030
jmp 0x51c0a8
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.0050ec90
mov ecx, eax
call fcn.0050edb0
mov edx, dword [eax + 8]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov edx, dword [edi]
cmp edx, ecx
mov dword [esp + 0x10], ecx
jl 0x51c0c5
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
mov ecx, dword [edi + 4]
cmp ecx, ebp
mov edx, ebp
jl 0x51c0d6
mov edx, ecx
mov ecx, dword [edi + 8]
mov ebp, dword [esp + 0x5c]
cmp ecx, ebp
mov dword [edi + 4], edx
jg 0x51c0e6
mov ebp, ecx
mov ecx, dword [edi + 0xc]
cmp ecx, eax
mov dword [edi + 8], ebp
jg 0x51c0f2
mov eax, ecx
cmp dword [esp + 0x10], ebp
mov dword [edi + 0xc], eax
jge 0x51c0ff
cmp edx, eax
jl 0x51c10c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret
mov al, byte [esp + 0xe4]
test al, al
je 0x51c315
mov eax, dword [esp + 0xe8]
cmp eax, 0x100
jne 0x51c4b5
mov al, byte [esp + 0xe0]
test al, al
je 0x51c15c
mov edx, dword [esp + 0xd4]
push pe_nt_image_headers32
push edi
push esi
push edx
push ebx
lea ecx, [esp + 0x24]
call fcn.0051cce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
fld dword [esi]
fmul qword [0x663110]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x3c]
fld dword [esi + 0xc]
fmul qword [0x663110]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x40]
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 4]
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 0xc]
dec ecx
cmp ecx, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x24], ecx
jl 0x51c308
lea ecx, [ecx]
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov edx, dword [ebx + 4]
imul edx, ecx
fadd qword [0x65c2f8]
fild dword [esp + 0x24]
fadd qword [0x65c2f8]
fld dword [esi + 0x10]
add edx, eax
fmul st(1)
mov eax, dword [ebx + 0x10]
fld dword [esi + 0xc]
lea ebp, [eax + edx*4]
fmul st(3)
faddp st(1)
fadd dword [esi + 0x14]
fstp dword [esp + 0x20]
fld dword [esi + 4]
fmul st(1)
fld dword [esi]
fmul st(3)
faddp st(1)
fadd dword [esi + 8]
fstp st(2)
fstp st(0)
fmul qword [0x663110]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x50]
fld dword [esp + 0x20]
mov edx, dword [esp + 0x50]
fmul qword [0x663110]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fistp dword [esp + 0x48]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 8]
sub ebp, 4
sub eax, dword [edi]
je 0x51c2f8
mov dword [esp + 0x20], eax
jmp 0x51c257
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov ecx, edx
add edx, ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x40]
add ebx, edx
mov edx, dword [esp + 0x38]
sar ecx, 0x10
add ebp, 4
sar eax, 0x10
cmp ecx, edx
mov dword [esp + 0x1c], ebx
jae 0x51c2e3
cmp eax, dword [esp + 0x4c]
jae 0x51c2e3
imul eax, edx
add eax, ecx
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 0x18
mov edx, pe_nt_image_headers32
sub edx, eax
mov eax, dword [ebp]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
mov ebx, ecx
imul eax, edx
and ebx, 0xffff00ff
imul ebx, edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
and eax, 0xff00ff
and ebx, 0xff00ff
xor eax, ebx
xor eax, ecx
add eax, dword [esp + 0x14]
mov dword [ebp], eax
dec dword [esp + 0x20]
jne 0x51c253
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0x24]
mov eax, dword [edi + 4]
dec ecx
cmp ecx, eax
mov dword [esp + 0x24], ecx
jge 0x51c1b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret
mov al, byte [esp + 0xe0]
test al, al
je 0x51c347
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xd4]
push edx
push edi
push esi
push eax
push ebx
lea ecx, [esp + 0x24]
call fcn.0051c500
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
fld dword [esi]
fmul qword [0x663110]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x40]
fld dword [esi + 0xc]
fmul qword [0x663110]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x3c]
mov eax, dword [esp + 0xd4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0xc]
dec ecx
cmp ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x20], ecx
jl 0x51c4a8
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov edx, dword [ebx + 4]
imul edx, ecx
fadd qword [0x65c2f8]
fild dword [esp + 0x20]
fadd qword [0x65c2f8]
fld dword [esi + 0x10]
add edx, eax
fmul st(1)
mov eax, dword [ebx + 0x10]
fld dword [esi + 0xc]
lea edx, [eax + edx*4]
fmul st(3)
faddp st(1)
fadd dword [esi + 0x14]
fstp dword [esp + 0x4c]
fld dword [esi + 4]
fmul st(1)
fld dword [esi]
fmul st(3)
faddp st(1)
fadd dword [esi + 8]
fstp st(2)
fstp st(0)
fmul qword [0x663110]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x44]
fld dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
fmul qword [0x663110]
mov dword [esp + 0x24], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fistp dword [esp + 0x38]
mov eax, dword [esp + 0xd4]
mov eax, dword [eax + 0x10]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 8]
sub edx, 4
sub eax, dword [edi]
mov dword [esp + 0x1c], ebp
je 0x51c498
mov dword [esp + 0x18], eax
lea esp, [esp]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov eax, ebp
mov ebp, dword [esp + 0x24]
add ebp, ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [esp + 0x48]
sar ecx, 0x10
add edx, 4
sar eax, 0x10
cmp ecx, ebx
mov dword [esp + 0x1c], ebp
jae 0x51c487
cmp eax, dword [esp + 0x50]
jae 0x51c487
imul eax, ebx
add eax, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
mov dword [edx], eax
dec dword [esp + 0x18]
jne 0x51c440
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 4]
dec ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jge 0x51c398
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xbc
ret
mov cl, byte [esp + 0xe0]
test cl, cl
push eax
push edi
push esi
je 0x51c4e0
mov ecx, dword [esp + 0xe0]
push ecx
push ebx
lea ecx, [esp + 0x28]
call fcn.0051d0d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
mov edx, dword [esp + 0xe0]
push edx
push ebx
lea ecx, [esp + 0x28]
call fcn.0051d4f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret