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

Disassembly:
sub esp, 0x8c
mov ecx, dword [0x122f7b8]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
mov edx, dword [ecx + 0xd0]
mov dword [esp + 0x34], eax
push ebx
mov eax, 1
push ebp
push esi
cmp edx, eax
push edi
mov dword [esp + 0x34], eax
jle 0x4bf695
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x38], 0x30
mov esi, dword [ecx + 0xd4]
mov edx, dword [esp + 0x38]
add esi, edx
xor ebx, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x30], 0x497423f0
mov eax, dword [esi + 4]
mov dword [esp + 0x28], ebx
test eax, eax
jle 0x4bf673
mov eax, dword [esi + 8]
mov edx, dword [ecx + 0xcc]
add eax, ebx
mov eax, dword [edx + eax*4]
mov dword [esp + 0x58], eax
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0xc4]
lea eax, [eax + eax*2]
lea edi, [edx + eax*8]
mov dword [esp + 0x64], edi
test byte [edi + 4], 4
je 0x4bf413
mov eax, dword [edi]
mov edx, dword [ecx + 0xac]
mov dword [esp + 0x3c], 0
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 8]
test eax, eax
jle 0x4bf413
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x3c]
add edx, eax
mov eax, dword [ecx + 0xbc]
mov eax, dword [eax + edx*4]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0xb4]
mov esi, dword [edx + eax*8]
lea eax, [edx + eax*8]
mov edx, dword [ecx + 0xa4]
mov eax, dword [eax + 4]
lea esi, [esi + esi*2]
lea eax, [eax + eax*2]
lea ebx, [edx + esi*4]
lea edx, [edx + eax*4]
xor eax, eax
test ebp, ebp
mov dword [esp + 0x60], edx
jle 0x4bf3f7
mov edi, dword [esp + 0xa0]
lea esi, [eax + 1]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x90]
push eax
lea edx, [esp + 0x88]
push ecx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
mov eax, esi
cdq
idiv ebp
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0xbc]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x7c]
push eax
push edi
push ecx
push ebx
call fcn.004bc300
fcom dword [esp + 0x5c]
add esp, 0x2c
fnstsw ax
test ah, 1
je 0x4bf3e2
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
fstp dword [esp + 0x30]
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], eax
jmp 0x4bf3e4
fstp st(0)
mov eax, esi
add edi, 0xc
cmp eax, ebp
jl 0x4bf370
mov ecx, dword [0x122f7b8]
mov edi, dword [esp + 0x64]
mov eax, dword [esp + 0x3c]
mov edx, dword [edi + 8]
inc eax
cmp eax, edx
mov dword [esp + 0x3c], eax
jl 0x4bf323
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
mov dword [esp + 0x28], ebx
jl 0x4bf2cd
fld dword [esp + 0x30]
fcomp dword [0x4e15c0]
fnstsw ax
test ah, 0x41
je 0x4bf673
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x84]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004bc2b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004bc2b0
mov edi, dword [esp + 0xc4]
xor esi, esi
add esp, 0x18
cmp edi, esi
jne 0x4bf4b6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], edx
fld dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x24], edx
fstp dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
fld dword [esp + 0x10]
fsub dword [esp + 0x1c]
lea edx, [esp + 0x74]
mov dword [esp + 0x7c], 0
push edx
fstp dword [esp + 0x78]
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
fstp dword [esp + 0x7c]
call fcn.0042bfc0
mov eax, dword [0x12284e0]
fstp dword [esp + 0x2c]
push eax
call fcn.004ba150
fadd st(0), st(0)
add esp, 8
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 1
jne 0x4bf66d
fld dword [esp + 0x18]
fsub dword [0x4e03b0]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
je 0x4bf66d
fld dword [esp + 0x24]
fsub dword [0x4e1100]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
je 0x4bf66d
fld dword [esp + 0x28]
fcomp dword [0x4e03b0]
fnstsw ax
test ah, 0x41
jne 0x4bf569
lea ecx, [esp + 0x80]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
push esi
call fcn.004b97f0
add esp, 0x10
test eax, eax
je 0x4bf66d
fld dword [esp + 0x24]
fadd dword [0x4e03d0]
cmp edi, esi
fstp dword [esp + 0x24]
fld dword [esp + 0x18]
fadd dword [0x4e03d0]
fstp dword [esp + 0x18]
je 0x4bf59b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
jmp 0x4bf5ab
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x50], 0
fld dword [esp + 0x4c]
fmul dword [eax + 4]
fld dword [esp + 0x48]
fmul dword [eax]
lea edx, [esp + 0x48]
push 0x3dcccccd
push edx
faddp st(1)
fsubr dword [eax + 0xc]
fdiv dword [eax + 8]
mov eax, dword [esp + 0x5c]
push eax
fstp dword [esp + 0x5c]
call fcn.004c3d80
add esp, 0xc
test eax, eax
jne 0x4bf600
fld dword [esp + 0x18]
fsub dword [0x4e03b8]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
je 0x4bf66d
call fcn.004b9c00
cmp eax, esi
je 0x4bf695
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], esi
mov dword [eax], ecx
mov dword [eax + 8], esi
mov edx, dword [esp + 0x1c]
lea ecx, [eax + 0xc]
cmp edi, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 0x14], edx
mov ebx, dword [esp + 0x10]
lea edx, [eax + 0x18]
mov dword [edx], ebx
mov ebx, dword [esp + 0x14]
mov dword [eax + 0x1c], ebx
mov ebx, dword [esp + 0x18]
mov dword [eax + 0x20], ebx
mov ebx, dword [esp + 0x2c]
mov dword [eax + 0x24], esi
mov word [eax + 0x28], si
mov dword [eax + 0x2c], ebx
mov dword [esp + 0x2c], eax
je 0x4bf661
push 1
jmp 0x4bf663
push 2
push edx
push ecx
call fcn.004ca4c0
add esp, 0xc
mov ecx, dword [0x122f7b8]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edx, dword [ecx + 0xd0]
inc eax
add esi, 0x30
cmp eax, edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
jl 0x4bf2a4
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret