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

Disassembly:
mov eax, dword [0x1325b3c]
sub esp, 0x58
xor edx, edx
push ebx
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x68]
cmp eax, ebp
push edi
mov dword [0xa7b4ac], edx
jle 0x4beed1
mov ecx, dword [0x1325b40]
mov edi, eax
add ecx, 0x24
fld dword [esi + 0x74]
fsub dword [ecx - 4]
fcom dword [ecx - 0xc]
fnstsw ax
and eax, 0x4100
je 0x4beec1
fld dword [0x537a94]
fsub dword [ecx - 0xc]
fstp dword [esp + 0x6c]
fcomp dword [esp + 0x6c]
fnstsw ax
test ah, 5
jnp 0x4beec3
fld dword [esi + 0x78]
fsub dword [ecx]
fcom dword [esp + 0x6c]
fnstsw ax
test ah, 5
jnp 0x4beec1
fcomp dword [ecx - 0xc]
fnstsw ax
and eax, 0x4100
je 0x4beec3
fld dword [ecx - 0xc]
fcomp dword [0x537aac]
fnstsw ax
and eax, 0x4100
jne 0x4bee54
fld dword [0x5374c0]
fld dword [ecx - 4]
fsub dword [esi + 0x74]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4bedd3
fld dword [esp + 0x6c]
fsub dword [0x537a90]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4beddd
fstp st(0)
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
fld dword [ecx]
fsub dword [esi + 0x78]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp eax, ebp
jle 0x4bee06
fsub dword [0x537a90]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4bee0c
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [ecx + 4]
fsub dword [esi + 0x7c]
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
fld dword [esp + 0x6c]
cmp eax, ebp
jle 0x4bee36
fsub dword [esi + 0x80]
fstp dword [esp + 0x6c]
cmp dword [esp + 0x6c], ebp
jle 0x4bee3c
fld dword [esp + 0x6c]
fmul dword [esp + 0x6c]
faddp st(1)
fld dword [ecx - 0xc]
fld st(0)
fmul st(1)
fxch st(1)
fxch st(2)
fcompp
fnstsw ax
and eax, 0x4100
fstp st(0)
je 0x4beec3
mov ebx, dword [ecx - 0x24]
lea eax, [ecx - 0x24]
lea edx, [edx + edx*4]
fld dword [0x5374e8]
mov dword [edx*4 + 0xa7b234], ebx
mov edx, dword [0xa7b4ac]
mov ebx, dword [ecx - 0x20]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xa7b238], ebx
mov edx, dword [0xa7b4ac]
mov ebx, dword [ecx - 0x1c]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xa7b23c], ebx
mov edx, dword [0xa7b4ac]
lea edx, [edx + edx*4]
mov dword [edx*4 + 0xa7b22c], eax
mov eax, dword [0xa7b4ac]
fdiv dword [ecx - 0xc]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xa7b230]
mov edx, dword [0xa7b4ac]
inc edx
mov dword [0xa7b4ac], edx
jmp 0x4beec3
fstp st(0)
add ecx, 0x2c
dec edi
jne 0x4bed3d
cmp edx, ebp
jne 0x4beee5
mov ecx, dword [0x13250f4]
pop edi
xor eax, eax
mov dword [esi + ecx*4 + 0x24], ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x28]
push edx
push ecx
push eax
push eax
call fcn.004bde00
add esp, 0x10
test eax, eax
jne 0x4bef12
mov edx, dword [0x13250f4]
pop edi
mov dword [esi + edx*4 + 0x24], ebp
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
fild dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
shl eax, 7
fmul qword [0x5389b0]
mov edi, dword [esi + 0x2c]
add eax, ecx
mov dword [esp + 0x6c], ebp
lea ebx, [eax*4 + 0xa6b224]
fstp dword [esi + 0x30]
fild dword [esp + 0x2c]
fmul qword [0x5389b0]
fstp dword [esi + 0x34]
mov eax, dword [0x1325bfc]
mov edx, dword [0x1325c08]
inc eax
mov dword [0x1325bfc], eax
mov eax, dword [esi + 0x14]
mov ecx, eax
imul ecx, eax
fld dword [0x5389b8]
add edx, ecx
mov dword [0x1325c08], edx
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], edx
fdiv dword [esp + 0x10]
call fcn.0051bfdc
cmp eax, 1
mov dword [esp + 0x4c], eax
jne 0x4bf015
mov eax, dword [esi + 0x78]
mov dword [esp + 0x24], 9
mov dword [esp + 0x60], eax
mov ecx, dword [esi + 0x74]
mov ebp, 9
mov dword [esp + 0x5c], ecx
xor edx, edx
lea eax, [esp + 0x5c]
mov dl, byte [esi + 0x28c]
push ebx
add edx, edx
push eax
mov dword [esp + 0x44], edx
push edi
fild dword [esp + 0x48]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
add esp, 0xc
or ecx, eax
add edi, 3
add ebx, 4
dec ebp
fstp dword [esp + 0x5c]
mov dword [esp + 0x6c], ecx
jne 0x4befa6
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add edi, 0x165
add ebx, 0x1dc
dec eax
mov dword [esp + 0x24], eax
fstp dword [esp + 0x60]
jne 0x4bef9a
jmp 0x4bf50c
cmp eax, 2
jne 0x4bf33e
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x30], 8
mov dword [esp + 0x60], ecx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x24], 8
mov dword [esp + 0x5c], edx
xor eax, eax
lea ecx, [esp + 0x5c]
mov al, byte [esi + ebp + 0x28c]
push ebx
mov dword [esp + 0x40], eax
push ecx
fild dword [esp + 0x44]
push edi
fst dword [esp + 0x20]
fadd st(0), st(0)
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
inc ebp
xor edx, edx
lea eax, [esp + 0x68]
push ebx
mov dl, byte [esi + ebp + 0x28c]
push eax
fstp dword [esp + 0x70]
mov dword [esp + 0x50], edx
push edi
fild dword [esp + 0x54]
mov dword [esp + 0x84], ecx
fst dword [esp + 0x30]
fadd dword [esp + 0x2c]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004bdf50
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x24]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jne 0x4bf03c
fld dword [esp + 0x18]
fadd st(0), st(0)
lea ecx, [esp + 0x5c]
push ebx
push ecx
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
fld dword [esp + 0x6c]
fadd dword [esp + 0x1c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esi + 0x74]
or ecx, eax
add esp, 0xc
add edi, 0x150
add ebx, 0x1c0
fstp dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
sub ebp, 8
mov dword [esp + 0x5c], edx
mov dword [esp + 0x24], 8
xor eax, eax
xor ecx, ecx
mov al, byte [esi + ebp + 0x28c]
mov cl, byte [esi + ebp + 0x295]
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x5c]
fild dword [esp + 0x3c]
mov dword [esp + 0x3c], ecx
push ebx
push edx
push edi
fstp dword [esp + 0x20]
fild dword [esp + 0x48]
fst dword [esp + 0x28]
fadd dword [esp + 0x20]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
inc ebp
xor eax, eax
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov al, byte [esi + ebp + 0x28c]
mov cl, byte [esi + ebp + 0x295]
fstp dword [esp + 0x68]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x68]
fild dword [esp + 0x48]
mov dword [esp + 0x48], ecx
push ebx
push edx
push edi
fstp dword [esp + 0x30]
fild dword [esp + 0x54]
fst dword [esp + 0x38]
fadd dword [esp + 0x34]
fadd dword [esp + 0x30]
fadd dword [esp + 0x2c]
fmul dword [0x5374f0]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004bdf50
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x24]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x24], eax
jne 0x4bf133
fld dword [esp + 0x20]
fadd dword [esp + 0x18]
lea eax, [esp + 0x5c]
push ebx
push eax
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
mov ecx, dword [esp + 0x78]
add esp, 0xc
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
add edi, 0x150
add ebx, 0x1c0
inc ebp
dec eax
fstp dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x30], eax
jne 0x4bf02d
mov ecx, dword [esi + 0x74]
lea ebp, [esi + ebp + 0x28c]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], 8
xor edx, edx
lea eax, [esp + 0x5c]
mov dl, byte [ebp]
push ebx
mov dword [esp + 0x40], edx
push eax
fild dword [esp + 0x44]
push edi
fst dword [esp + 0x28]
fadd st(0), st(0)
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
mov ecx, dword [esp + 0x78]
add edi, 3
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
add ebx, 4
mov dword [esp + 0x78], ecx
inc ebp
xor ecx, ecx
lea edx, [esp + 0x68]
mov cl, byte [ebp]
push ebx
fstp dword [esp + 0x6c]
mov dword [esp + 0x4c], ecx
push edx
fild dword [esp + 0x50]
push edi
fst dword [esp + 0x38]
fadd dword [esp + 0x34]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x7c]
call fcn.004bdf50
mov ecx, dword [esp + 0x84]
add esp, 0x18
fld dword [esp + 0x5c]
fadd dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
add edi, 3
add ebx, 4
dec eax
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x5c]
mov dword [esp + 0x30], eax
jne 0x4bf277
fld dword [esp + 0x20]
fadd st(0), st(0)
lea eax, [esp + 0x5c]
push ebx
push eax
push edi
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
mov ecx, dword [esp + 0x78]
add esp, 0xc
or ecx, eax
mov dword [esp + 0x6c], ecx
jmp 0x4bf50c
mov ecx, eax
mov edx, dword [esi + 0x78]
imul ecx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x60], edx
fild dword [esp + 0x3c]
xor edx, edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x3c], edx
fdivr dword [0x5375ec]
fstp dword [esp + 0x44]
jmp 0x4bf36a
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x24]
xor ecx, ecx
cmp ebp, 7
sete cl
add ecx, eax
test ecx, ecx
mov dword [esp + 0x58], ecx
jle 0x4bf4f3
lea ecx, [eax + eax*2]
mov dword [esp + 0x14], eax
shl ecx, 3
mov dword [esp + 0x50], ecx
mov ecx, eax
shl ecx, 5
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x74]
xor ebp, ebp
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x38], ebp
xor ecx, ecx
cmp ebp, 7
sete cl
add ecx, eax
mov dword [esp + 0x20], 0
test ecx, ecx
mov dword [esp + 0x48], ecx
jle 0x4bf4a1
fild dword [esp + 0x14]
add edx, ebp
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x34]
fild dword [esp + 0x18]
lea ebp, [edx + esi]
fstp dword [esp + 0x30]
xor edx, edx
xor eax, eax
mov dl, byte [ebp + 0x28d]
mov al, byte [ebp + 0x296]
mov dword [esp + 0x40], edx
xor ecx, ecx
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov cl, byte [ebp + 0x295]
xor edx, edx
lea eax, [esp + 0x5c]
fmul dword [esp + 0x34]
fild dword [esp + 0x40]
mov dl, byte [ebp + 0x28c]
mov dword [esp + 0x40], ecx
push ebx
push eax
fmul dword [esp + 0x38]
push edi
faddp st(1)
fimul dword [esp + 0x2c]
fild dword [esp + 0x4c]
mov dword [esp + 0x4c], edx
fmul dword [esp + 0x3c]
fild dword [esp + 0x4c]
fmul dword [esp + 0x40]
faddp st(1)
fimul dword [esp + 0x28]
faddp st(1)
fmul dword [esp + 0x50]
fadd dword [esi + 0x7c]
fstp dword [esp + 0x70]
call fcn.004bdf50
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
fld dword [esp + 0x68]
fadd dword [esp + 0x1c]
or ecx, eax
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x48]
add edi, 3
fstp dword [esp + 0x5c]
add ebx, 4
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
jl 0x4bf3e3
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
inc ebp
cmp ebp, 8
mov dword [esp + 0x38], ebp
jl 0x4bf3ac
mov ebp, dword [esp + 0x50]
mov ecx, 0x17d
sub ecx, ebp
mov ebp, dword [esp + 0x54]
add edi, ecx
mov ecx, 0x1fc
fld dword [esp + 0x60]
fadd dword [esp + 0x10]
sub ecx, ebp
mov ebp, dword [esp + 0x14]
add ebx, ecx
mov ecx, dword [esp + 0x18]
inc ecx
dec ebp
fstp dword [esp + 0x60]
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x58]
cmp ecx, ebp
mov dword [esp + 0x18], ecx
jl 0x4bf39f
mov ecx, dword [esp + 0x24]
add edx, 9
inc ecx
cmp edx, 0x48
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], edx
jl 0x4bf368
mov eax, dword [esp + 0x6c]
xor ecx, ecx
cmp eax, ecx
jne 0x4bf52a
mov edx, dword [0x13250f4]
pop edi
xor eax, eax
mov dword [esi + edx*4 + 0x24], ecx
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esi + 0x14]
cmp eax, ecx
jle 0x4bf550
mov edx, dword [esp + 0x28]
lea edx, [edx*4 + 0xa6b024]
mov edi, dword [esp + 0x2c]
add edx, 4
add eax, edi
inc ecx
mov dword [edx - 4], eax
mov eax, dword [esi + 0x14]
cmp ecx, eax
jl 0x4bf53c
fld dword [esi + 0x20]
fdivr qword [0x5389b0]
pop edi
fld st(0)
fmul dword [esi + 0x74]
fsub dword [0x537cb4]
fsubr dword [esi + 0x30]
fstp dword [esi + 0x30]
fmul dword [esi + 0x78]
fsub dword [0x537cb4]
fsubr dword [esi + 0x34]
fstp dword [esi + 0x34]
mov eax, dword [0xa6b020]
mov ecx, dword [0x13250f4]
inc eax
mov dword [esi + ecx*4 + 0x24], eax
mov edx, dword [0x13250f4]
mov eax, dword [esi + edx*4 + 0x24]
pop esi
pop ebp
pop ebx
add esp, 0x58
ret