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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
xor edi, edi
cmp dword [esi + 0x50], edi
je 0x4bd877
cmp dword [esi + 0x4c], edi
je 0x4bd877
mov eax, dword [0x13147bc]
xor ebp, ebp
xor ecx, ecx
cmp eax, edi
mov dword [0xa6a13c], ebp
jle 0x4bd3ac
mov eax, dword [0x13147c0]
lea edx, [eax + 0x18]
mov eax, dword [esp + 0xa8]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x4bd397
fld dword [edx - 0x18]
fsub dword [edx]
lea edi, [edx - 0x18]
fcomp dword [esi + 0x20]
fnstsw ax
and eax, 0x4100
je 0x4bd383
fld dword [edx]
fadd dword [edi]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 5
jnp 0x4bd383
fld dword [edx - 0x14]
fsub dword [edx]
fcomp dword [esi + 0x24]
fnstsw ax
and eax, 0x4100
je 0x4bd383
fld dword [edx]
fadd dword [edx - 0x14]
fcomp dword [esi + 0x18]
fnstsw ax
test ah, 5
jnp 0x4bd383
fld dword [edx - 0x10]
fsub dword [edx]
fcomp dword [esi + 0x28]
fnstsw ax
and eax, 0x4100
je 0x4bd383
fld dword [edx]
fadd dword [edx - 0x10]
fcomp dword [esi + 0x1c]
fnstsw ax
test ah, 5
jnp 0x4bd383
mov ebx, dword [edx + 8]
lea eax, [ebp + ebp*4]
fld dword [0x5354d8]
mov dword [eax*4 + 0xa69ec4], ebx
mov eax, dword [0xa6a13c]
mov ebx, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa69ec8], ebx
mov eax, dword [0xa6a13c]
mov ebx, dword [edx + 0x10]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa69ecc], ebx
mov eax, dword [0xa6a13c]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa69ebc], edi
mov eax, dword [0xa6a13c]
fdiv dword [edx]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xa69ec0]
mov ebp, dword [0xa6a13c]
inc ebp
mov dword [0xa6a13c], ebp
jmp 0x4bd395
mov eax, dword [esp + 0xa8]
not ebx
and eax, ebx
mov dword [esp + 0xa8], eax
xor edi, edi
mov eax, dword [0x13147bc]
inc ecx
add edx, 0x2c
cmp ecx, eax
jl 0x4bd294
cmp ebp, edi
jne 0x4bd3c3
mov ecx, dword [0x1313d74]
xor eax, eax
mov dword [esi + ecx*4 + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x28]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esi + 0x4c]
push eax
push ecx
push edx
call fcn.004bcd00
add esp, 0x10
test eax, eax
je 0x4bd877
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
fild dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x38], edi
shl edx, 7
fmul qword [0x5369a0]
add edx, ebx
mov dword [0xa69eb4], ecx
lea eax, [edx*4 + 0xa59eb4]
mov dword [0xa69eb8], eax
fild dword [esi + 0x44]
fmul qword [0x5369a0]
fsubp st(1)
fstp dword [esi + 0x3c]
fild dword [esp + 0x28]
fmul qword [0x5369a0]
fild dword [esi + 0x48]
fmul qword [0x5369a0]
fsubp st(1)
fstp dword [esi + 0x40]
mov ecx, dword [0x131487c]
mov eax, dword [0x1314888]
inc ecx
mov dword [0x131487c], ecx
mov ecx, dword [esi + 0x50]
imul ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [0x1314888], eax
mov ebx, dword [esi + 0x70]
fld dword [esi + 0x94]
lea edx, [ebx + ebx*4]
lea eax, [ebx + edx*2]
fcomp dword [esi + eax*4 + 0x68]
lea ecx, [esi + eax*4]
fld dword [esi + 0x94]
fnstsw ax
test ah, 0x44
jp 0x4bd4d6
mov edx, dword [esi + 0x74]
mov dword [esp + 0x18], edi
lea eax, [edx - 1]
imul eax, ebx
lea ebp, [eax + eax*4]
lea eax, [eax + ebp*2]
or ebp, 0xffffffff
mov dword [esp + 0x14], ebp
fcomp dword [esi + eax*4 + 0x94]
fnstsw ax
and eax, 0x4100
je 0x4bd4b0
mov dword [esp + 0x14], 1
fld dword [esi + 0x98]
fcomp dword [ecx + 0x6c]
mov dword [esp + 0x1c], edi
fnstsw ax
and eax, 0x4100
jne 0x4bd4cc
mov dword [esp + 0x20], ebp
jmp 0x4bd52a
mov dword [esp + 0x20], 1
jmp 0x4bd52a
fcomp dword [ecx + 0x68]
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
fnstsw ax
and eax, 0x4100
je 0x4bd4f5
mov dword [esp + 0x18], 1
mov edx, dword [esi + 0x74]
mov dword [esp + 0x20], edi
fld dword [esi + 0x98]
lea eax, [edx - 1]
mov dword [esp + 0x1c], ebp
imul eax, ebx
lea ecx, [eax + eax*4]
lea eax, [eax + ecx*2]
fcomp dword [esi + eax*4 + 0x98]
fnstsw ax
and eax, 0x4100
je 0x4bd52a
mov dword [esp + 0x1c], 1
xor ecx, ecx
cmp edx, edi
mov dword [esp + 0x34], ecx
jle 0x4bd810
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
sub edx, ebp
mov dword [esp + 0x40], edx
jmp 0x4bd54c
mov ebp, dword [esp + 0x1c]
cmp ebx, edi
mov dword [esp + 0x30], edi
jle 0x4bd7fa
lea eax, [ecx + ebp]
mov dword [esp + 0x44], eax
add eax, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
add ebp, edx
mov edx, dword [esp + 0x20]
add ebp, ecx
sub eax, edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x3c], eax
mov eax, ebx
mov ebp, dword [esi + 0x44]
imul eax, ecx
add eax, dword [esp + 0x30]
neg ebp
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x50], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x536998]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x54], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x58], edx
call fcn.0051a95c
fld dword [edi + 0x18]
fmul dword [0x536998]
mov ecx, ebp
sub ecx, eax
mov eax, dword [esi + 0x48]
neg eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x24], eax
call fcn.0051a95c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x60], edx
jge 0x4bd602
xor ecx, ecx
jmp 0x4bd60c
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4bd60c
lea ecx, [eax - 1]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add edx, eax
test edx, edx
jge 0x4bd61e
xor edx, edx
jmp 0x4bd625
cmp edx, ebx
jl 0x4bd625
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x64], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x536998]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x68], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x6c], edx
call fcn.0051a95c
fld dword [edi + 0x18]
fmul dword [0x536998]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x70], ecx
call fcn.0051a95c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x74], edx
jge 0x4bd694
xor ecx, ecx
jmp 0x4bd69e
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4bd69e
lea ecx, [eax - 1]
mov edx, dword [esp + 0x10]
test edx, edx
jge 0x4bd6aa
xor edx, edx
jmp 0x4bd6b1
cmp edx, ebx
jl 0x4bd6b1
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x78], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x536998]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x7c], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x80], edx
call fcn.0051a95c
fld dword [edi + 0x18]
fmul dword [0x536998]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x84], ecx
call fcn.0051a95c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x88], edx
jge 0x4bd729
xor ecx, ecx
jmp 0x4bd733
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4bd733
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, eax
test edx, edx
jge 0x4bd745
xor edx, edx
jmp 0x4bd74c
cmp edx, ebx
jl 0x4bd74c
lea edx, [ebx - 1]
mov eax, ebx
imul eax, ecx
add eax, edx
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + edx*4 + 0x80]
mov ecx, dword [esi + edx*4 + 0x84]
mov dword [esp + 0x8c], eax
fld dword [esi + edx*4 + 0x94]
fmul dword [0x536998]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x90], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x94], edx
call fcn.0051a95c
fld dword [edi + 0x18]
fmul dword [0x536998]
sub ebp, eax
mov dword [esp + 0x98], ebp
call fcn.0051a95c
mov ecx, dword [esp + 0x24]
sub ecx, eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xa0], ecx
call fcn.004bcfe0
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
or ebx, eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x38], ebx
mov ebx, dword [esi + 0x70]
inc eax
inc edx
cmp eax, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jl 0x4bd583
mov edx, dword [esp + 0x40]
xor edi, edi
mov eax, dword [esi + 0x74]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x4bd548
cmp dword [esp + 0x38], edi
jne 0x4bd827
mov ecx, dword [0x1313d74]
xor eax, eax
mov dword [esi + ecx*4 + 0xc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esi + 0x4c]
xor eax, eax
cmp ecx, edi
jle 0x4bd852
mov edx, dword [esp + 0x2c]
lea ecx, [edx*4 + 0xa59cb4]
mov edx, dword [esp + 0x28]
mov edi, dword [esi + 0x50]
add ecx, 4
add edi, edx
inc eax
mov dword [ecx - 4], edi
mov edi, dword [esi + 0x4c]
cmp eax, edi
jl 0x4bd83f
mov eax, dword [0xa59cb0]
mov ecx, dword [0x1313d74]
inc eax
pop edi
mov dword [esi + ecx*4 + 0xc], eax
mov edx, dword [0x1313d74]
mov eax, dword [esi + edx*4 + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [0x1313d74]
mov dword [esi + eax*4 + 0xc], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret