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

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
mov ecx, dword [0xa26f98]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4bf59f
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
shl eax, 4
mov dword [esp + 0x30], eax
mov ecx, dword [0xa26f9c]
mov esi, dword [eax + ecx + 0xc]
cmp dword [esi], 2
jne 0x4bf579
cmp dword [esi + 0x68], 2
je 0x4bf579
fld dword [edi + 0x64]
fcomp dword [esi + 0x64]
fnstsw ax
test ah, 0x44
jp 0x4bf579
fld dword [edi + 0x58]
fcomp dword [esi + 0x58]
fnstsw ax
test ah, 0x44
jp 0x4bf579
fld dword [edi + 0x5c]
fcomp dword [esi + 0x5c]
fnstsw ax
test ah, 0x44
jp 0x4bf579
fld dword [edi + 0x60]
fcomp dword [esi + 0x60]
fnstsw ax
test ah, 0x44
jp 0x4bf579
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bf085
mov ebp, dword [edi + 0x74]
dec ebp
imul ebp, dword [edi + 0x70]
jmp 0x4bf087
xor ebp, ebp
push ebp
push edi
call fcn.004bedf0
add esp, 8
test eax, eax
jne 0x4bf2e5
mov edx, dword [edi + 0x70]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4bf2e5
inc ebp
mov dword [esp + 0x28], ebp
lea eax, [ebp + ebp*4]
lea ecx, [ebp + eax*2]
lea edx, [edi + ecx*4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4bf0dc
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4bf0de
xor ebx, ebx
push ebx
push esi
mov dword [esp + 0x1c], ebx
call fcn.004bedf0
add esp, 8
test eax, eax
jne 0x4bf1b6
mov eax, dword [esi + 0x70]
mov ecx, 1
dec eax
cmp eax, ecx
jle 0x4bf1b6
lea edx, [ebx + ebx*4]
lea eax, [ebx + edx*2]
lea edx, [esi + eax*4 + 0xb4]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
fld dword [eax + 0x80]
fsub dword [edx - 8]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf19e
lea eax, [ebp + ebp*4 + 0xf]
lea edx, [ebp + eax*2 + 3]
lea eax, [ecx + ebx + 3]
fld dword [edi + edx*4]
lea ebx, [eax + eax*4]
lea eax, [eax + ebx*2]
fsub dword [esi + eax*4]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf19a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
fld dword [edx + 0x88]
fsub dword [eax]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf19a
mov edx, dword [edi + 0x78]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x78]
mov dword [esp + 0x20], 1
mov edx, dword [edx + ebx*4]
mov dword [eax + ecx*4], edx
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc ecx
add eax, 0x2c
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x70]
dec eax
cmp ecx, eax
jl 0x4bf116
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4bf0ca
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4bf1de
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4bf1e0
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004beef0
add esp, 8
test eax, eax
jne 0x4bf2ae
mov ecx, dword [esi + 0x74]
mov edx, 1
dec ecx
cmp ecx, edx
jle 0x4bf2ae
mov eax, dword [esi + 0x70]
mov ecx, dword [esp + 0x14]
imul eax, edx
add ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [ecx + eax*2]
lea ebx, [esi + eax*4]
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x80]
fsub dword [ebx + 0x80]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf2a1
lea eax, [ebp + ebp*4 + 0xf]
lea eax, [ebp + eax*2 + 3]
lea ebp, [ecx + ecx*4 + 0xf]
fld dword [edi + eax*4]
lea ecx, [ecx + ebp*2 + 3]
mov ebp, dword [esp + 0x28]
fsub dword [esi + ecx*4]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf2a1
mov eax, dword [esp + 0x1c]
fld dword [eax + 0x88]
fsub dword [ebx + 0x88]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf2a1
mov ecx, dword [edi + 0x78]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 0x7c]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + ebx*4]
mov dword [eax + edx*4], ecx
mov eax, dword [esi + 0x74]
inc edx
dec eax
cmp edx, eax
jl 0x4bf207
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4bf1d0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add ecx, 0x2c
inc eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x70]
inc ebp
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ebp
jl 0x4bf0c2
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4bf073
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bf30d
mov eax, dword [edi + 0x70]
dec eax
jmp 0x4bf30f
xor eax, eax
push eax
push edi
mov dword [esp + 0x30], eax
call fcn.004beef0
add esp, 8
test eax, eax
jne 0x4bf54a
mov edx, dword [edi + 0x74]
mov dword [esp + 0x10], 1
dec edx
cmp edx, 1
jle 0x4bf54a
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4bf354
mov ebx, dword [esi + 0x74]
dec ebx
imul ebx, dword [esi + 0x70]
jmp 0x4bf356
xor ebx, ebx
push ebx
push esi
call fcn.004bedf0
add esp, 8
test eax, eax
jne 0x4bf416
mov eax, dword [esi + 0x70]
mov ebp, 1
dec eax
cmp eax, ebp
jle 0x4bf416
lea ecx, [ebx + ebx*4 + 0x14]
lea edx, [ebx + ecx*2 + 4]
lea edx, [esi + edx*4]
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
add ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [ecx + eax*2]
fld dword [edi + eax*4 + 0x80]
fsub dword [edx - 4]
lea ebx, [edi + eax*4]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf406
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
fld dword [edi + ecx*4]
fsub dword [edx]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf406
fld dword [ebx + 0x88]
fsub dword [edx + 4]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf406
mov eax, dword [edi + 0x7c]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x20], 1
mov eax, dword [eax + ebx*4]
mov dword [ecx + ebp*4], eax
mov ecx, dword [esi + 0x70]
inc ebp
add edx, 0x2c
dec ecx
cmp ebp, ecx
jl 0x4bf384
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4bf342
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4bf43e
mov eax, dword [esi + 0x70]
dec eax
jmp 0x4bf440
xor eax, eax
push eax
push esi
mov dword [esp + 0x1c], eax
call fcn.004beef0
add esp, 8
test eax, eax
jne 0x4bf523
mov edx, dword [esi + 0x74]
mov ebx, 1
dec edx
cmp edx, ebx
jle 0x4bf523
mov eax, dword [edi + 0x70]
mov ecx, dword [esp + 0x28]
imul eax, dword [esp + 0x10]
add ecx, eax
lea edx, [ecx + ecx*4]
lea eax, [ecx + edx*2]
mov edx, dword [esi + 0x70]
imul edx, ebx
fld dword [edi + eax*4 + 0x80]
lea ebp, [edi + eax*4]
mov eax, dword [esp + 0x14]
add edx, eax
lea eax, [edx + edx*4]
lea eax, [edx + eax*2]
fsub dword [esi + eax*4 + 0x80]
lea eax, [esi + eax*4]
mov dword [esp + 0x24], eax
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf516
lea eax, [ecx + ecx*4 + 0xf]
lea ecx, [ecx + eax*2 + 3]
lea eax, [edx + edx*4 + 0xf]
fld dword [edi + ecx*4]
lea edx, [edx + eax*2 + 3]
fsub dword [esi + edx*4]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf516
mov eax, dword [esp + 0x24]
fld dword [ebp + 0x88]
fsub dword [eax + 0x88]
fabs
fcomp qword [0x531968]
fnstsw ax
and eax, 0x4100
je 0x4bf516
mov ecx, dword [edi + 0x7c]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x7c]
mov dword [esp + 0x20], 1
mov ecx, dword [ecx + eax*4]
mov dword [edx + ebx*4], ecx
mov edx, dword [esi + 0x74]
inc ebx
dec edx
cmp ebx, edx
jl 0x4bf467
mov eax, dword [esp + 0x3c]
inc eax
cmp eax, 2
mov dword [esp + 0x3c], eax
jl 0x4bf430
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x74]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4bf33a
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x4bf2ff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4bf579
mov edx, dword [esp + 0x38]
push esi
push edx
mov dword [esi + 0x68], 2
call fcn.004befe0
add esp, 8
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [0xa26f98]
inc ecx
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jl 0x4bf008
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret