Function at 0x4b9810
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 0x4b9e37
cmp dword [esi + 0x4c], edi
je 0x4b9e37
mov eax, dword [0x13001e0]
xor ebp, ebp
xor ecx, ecx
cmp eax, edi
mov dword [0xa26eec], ebp
jle 0x4b996c
mov eax, dword [0x13001e4]
lea edx, [eax + 0x18]
mov eax, dword [esp + 0xa8]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x4b9957
fld dword [edx - 0x18]
fsub dword [edx]
lea edi, [edx - 0x18]
fcomp dword [esi + 0x20]
fnstsw ax
and eax, 0x4100
je 0x4b9943
fld dword [edx]
fadd dword [edi]
fcomp dword [esi + 0x14]
fnstsw ax
test ah, 5
jnp 0x4b9943
fld dword [edx - 0x14]
fsub dword [edx]
fcomp dword [esi + 0x24]
fnstsw ax
and eax, 0x4100
je 0x4b9943
fld dword [edx]
fadd dword [edx - 0x14]
fcomp dword [esi + 0x18]
fnstsw ax
test ah, 5
jnp 0x4b9943
fld dword [edx - 0x10]
fsub dword [edx]
fcomp dword [esi + 0x28]
fnstsw ax
and eax, 0x4100
je 0x4b9943
fld dword [edx]
fadd dword [edx - 0x10]
fcomp dword [esi + 0x1c]
fnstsw ax
test ah, 5
jnp 0x4b9943
mov ebx, dword [edx + 8]
lea eax, [ebp + ebp*4]
fld dword [0x5314e8]
mov dword [eax*4 + 0xa26c74], ebx
mov eax, dword [0xa26eec]
mov ebx, dword [edx + 0xc]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa26c78], ebx
mov eax, dword [0xa26eec]
mov ebx, dword [edx + 0x10]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa26c7c], ebx
mov eax, dword [0xa26eec]
lea eax, [eax + eax*4]
mov dword [eax*4 + 0xa26c6c], edi
mov eax, dword [0xa26eec]
fdiv dword [edx]
lea eax, [eax + eax*4]
fstp dword [eax*4 + 0xa26c70]
mov ebp, dword [0xa26eec]
inc ebp
mov dword [0xa26eec], ebp
jmp 0x4b9955
mov eax, dword [esp + 0xa8]
not ebx
and eax, ebx
mov dword [esp + 0xa8], eax
xor edi, edi
mov eax, dword [0x13001e0]
inc ecx
add edx, 0x2c
cmp ecx, eax
jl 0x4b9854
cmp ebp, edi
jne 0x4b9983
mov ecx, dword [0x12ff794]
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.004b92c0
add esp, 0x10
test eax, eax
je 0x4b9e37
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 [0x532898]
add edx, ebx
mov dword [0xa26c64], ecx
lea eax, [edx*4 + 0xa16c64]
mov dword [0xa26c68], eax
fild dword [esi + 0x44]
fmul qword [0x532898]
fsubp st(1)
fstp dword [esi + 0x3c]
fild dword [esp + 0x28]
fmul qword [0x532898]
fild dword [esi + 0x48]
fmul qword [0x532898]
fsubp st(1)
fstp dword [esi + 0x40]
mov ecx, dword [0x13002a0]
mov eax, dword [0x13002ac]
inc ecx
mov dword [0x13002a0], ecx
mov ecx, dword [esi + 0x50]
imul ecx, dword [esi + 0x4c]
add eax, ecx
mov dword [0x13002ac], 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 0x4b9a96
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 0x4b9a70
mov dword [esp + 0x14], 1
fld dword [esi + 0x98]
fcomp dword [ecx + 0x6c]
mov dword [esp + 0x1c], edi
fnstsw ax
and eax, 0x4100
jne 0x4b9a8c
mov dword [esp + 0x20], ebp
jmp 0x4b9aea
mov dword [esp + 0x20], 1
jmp 0x4b9aea
fcomp dword [ecx + 0x68]
or ebp, 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
fnstsw ax
and eax, 0x4100
je 0x4b9ab5
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 0x4b9aea
mov dword [esp + 0x1c], 1
xor ecx, ecx
cmp edx, edi
mov dword [esp + 0x34], ecx
jle 0x4b9dd0
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
sub edx, ebp
mov dword [esp + 0x40], edx
jmp 0x4b9b0c
mov ebp, dword [esp + 0x1c]
cmp ebx, edi
mov dword [esp + 0x30], edi
jle 0x4b9dba
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 [0x532890]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x54], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x58], edx
call fcn.00516e2c
fld dword [edi + 0x18]
fmul dword [0x532890]
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.00516e2c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x60], edx
jge 0x4b9bc2
xor ecx, ecx
jmp 0x4b9bcc
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4b9bcc
lea ecx, [eax - 1]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add edx, eax
test edx, edx
jge 0x4b9bde
xor edx, edx
jmp 0x4b9be5
cmp edx, ebx
jl 0x4b9be5
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 [0x532890]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x68], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x6c], edx
call fcn.00516e2c
fld dword [edi + 0x18]
fmul dword [0x532890]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x70], ecx
call fcn.00516e2c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x74], edx
jge 0x4b9c54
xor ecx, ecx
jmp 0x4b9c5e
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4b9c5e
lea ecx, [eax - 1]
mov edx, dword [esp + 0x10]
test edx, edx
jge 0x4b9c6a
xor edx, edx
jmp 0x4b9c71
cmp edx, ebx
jl 0x4b9c71
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 [0x532890]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x7c], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x80], edx
call fcn.00516e2c
fld dword [edi + 0x18]
fmul dword [0x532890]
mov ecx, ebp
sub ecx, eax
mov dword [esp + 0x84], ecx
call fcn.00516e2c
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
sub edx, eax
test ecx, ecx
mov dword [esp + 0x88], edx
jge 0x4b9ce9
xor ecx, ecx
jmp 0x4b9cf3
mov eax, dword [esi + 0x74]
cmp ecx, eax
jl 0x4b9cf3
lea ecx, [eax - 1]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add edx, eax
test edx, edx
jge 0x4b9d05
xor edx, edx
jmp 0x4b9d0c
cmp edx, ebx
jl 0x4b9d0c
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 [0x532890]
lea edi, [esi + edx*4 + 0x80]
mov dword [esp + 0x90], ecx
mov edx, dword [edi + 8]
mov dword [esp + 0x94], edx
call fcn.00516e2c
fld dword [edi + 0x18]
fmul dword [0x532890]
sub ebp, eax
mov dword [esp + 0x98], ebp
call fcn.00516e2c
mov ecx, dword [esp + 0x24]
sub ecx, eax
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0xa0], ecx
call fcn.004b95a0
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 0x4b9b43
mov edx, dword [esp + 0x40]
xor edi, edi
mov eax, dword [esi + 0x74]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x4b9b08
cmp dword [esp + 0x38], edi
jne 0x4b9de7
mov ecx, dword [0x12ff794]
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 0x4b9e12
mov edx, dword [esp + 0x2c]
lea ecx, [edx*4 + 0xa16a64]
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 0x4b9dff
mov eax, dword [0xa16a60]
mov ecx, dword [0x12ff794]
inc eax
pop edi
mov dword [esi + ecx*4 + 0xc], eax
mov edx, dword [0x12ff794]
mov eax, dword [esi + edx*4 + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [0x12ff794]
mov dword [esi + eax*4 + 0xc], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret