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

Disassembly:
sub esp, 0x94
mov eax, dword [0x5c989c]
mov dword [esp + 0x2c], ecx
cmp eax, 4
je 0x4be4b1
mov al, byte [ecx + 0x6ed]
test al, al
je 0x4be4b1
mov eax, dword [ecx + 0x158]
mov edx, dword [ecx + 0x15c]
mov eax, dword [eax + 4]
cmp eax, edx
mov dword [esp + 0x1c], eax
je 0x4be4b1
push ebx
push ebp
push esi
push edi
mov ebx, dword [eax]
mov edx, dword [ecx + 0x6e0]
cmp edx, dword [ebx]
jne 0x4be498
mov ecx, dword [ebx + 0x134]
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebx + 0x144]
mov eax, dword [ebx + 0x144]
mov dword [esp + 0x20], eax
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], edx
mov esi, dword [ecx + 8]
lea ecx, [ebx + 0x150]
mov dword [esp + 0x28], esi
mov edi, dword [ecx]
mov dword [esp + 0x14], edi
mov ebp, dword [ecx + 4]
mov dword [esp + 0x18], ebp
mov ecx, dword [ecx + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x12c]
test ecx, ecx
je 0x4be42c
call fcn.004adff0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x6c]
fmul dword [esp + 0x28]
fld dword [esp + 0x5c]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x4c]
fmul dword [esp + 0x20]
faddp st(1)
fadd dword [esp + 0x7c]
fld dword [esp + 0x70]
fmul dword [esp + 0x28]
fld dword [esp + 0x60]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x20]
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [esp + 0x34]
fld dword [esp + 0x74]
fmul dword [esp + 0x28]
fld dword [esp + 0x64]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x20]
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [esp + 0x38]
fld dword [esp + 0x78]
fmul dword [esp + 0x28]
fld dword [esp + 0x68]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x20]
faddp st(1)
fadd dword [esp + 0x88]
fdivr dword [0x58d5d4]
fst dword [esp + 0x10]
fmul st(1)
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fstp st(0)
fld dword [esp + 0x10]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
fld dword [esp + 0x10]
fmul dword [esp + 0x38]
mov edx, dword [esp + 0x34]
fstp dword [esp + 0x38]
fld dword [esp + 0x7c]
fld dword [esp + 0x80]
fstp dword [esp + 0x9c]
fld dword [esp + 0x84]
fstp dword [esp + 0xa0]
fld dword [esp + 0x1c]
fmul dword [esp + 0x6c]
fld dword [esp + 0x18]
fmul dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x4c]
faddp st(1)
fadd dword [esp + 0x7c]
fld dword [esp + 0x1c]
fmul dword [esp + 0x70]
fld dword [esp + 0x18]
fmul dword [esp + 0x60]
faddp st(1)
fld dword [esp + 0x50]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0x80]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fmul dword [esp + 0x74]
fld dword [esp + 0x18]
fmul dword [esp + 0x64]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0x84]
fstp dword [esp + 0x48]
fld dword [esp + 0x1c]
fmul dword [esp + 0x78]
fld dword [esp + 0x18]
fmul dword [esp + 0x68]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [esp + 0x14]
faddp st(1)
fadd dword [esp + 0x88]
fdivr dword [0x58d5d4]
fst dword [esp + 0x10]
fmulp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x44]
fstp dword [esp + 0x44]
fld dword [esp + 0x10]
fmul dword [esp + 0x48]
fstp dword [esp + 0x48]
fsub st(1)
fstp dword [esp + 0x8c]
mov edi, dword [esp + 0x8c]
fstp st(0)
fld dword [esp + 0x44]
fsub dword [esp + 0x9c]
fstp dword [esp + 0x90]
fld dword [esp + 0x48]
fsub dword [esp + 0xa0]
mov ebp, dword [esp + 0x90]
fstp dword [esp + 0x94]
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x134]
add ecx, 0x158
mov dword [ecx], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov edx, dword [ebx + 0x134]
add edx, 0x178
mov dword [edx], edi
mov dword [edx + 4], ebp
mov dword [edx + 8], eax
mov ecx, dword [ebx + 0x134]
call fcn.0050bd20
mov ecx, dword [ebx + 0x134]
mov edx, dword [ecx]
call dword [edx + 0x34]
test al, al
je 0x4be490
mov eax, dword [ebx + 0x138]
mov dword [eax + 0x104], ebx
mov ecx, dword [ebx + 0x134]
mov al, byte [ebx + 0x109]
mov edx, dword [ecx]
push eax
call dword [edx + 0x28]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov edx, dword [ecx + 0x15c]
cmp eax, edx
mov dword [esp + 0x2c], eax
jne 0x4be1d5
pop edi
pop esi
pop ebp
pop ebx
mov al, 1
add esp, 0x94
ret