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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1c], 0
mov eax, dword [edi + 4]
mov dword [esp + 0x3c], eax
jg 0x4bfb09
mov ecx, dword [edi]
mov eax, dword [ecx + 0x18]
xor esi, esi
test eax, eax
je 0x4bf7ea
jmp 0x4bf7e0
mov eax, dword [eax + 4]
add esi, 1
test eax, eax
jne 0x4bf7e0
lea ebx, [esi*4]
push ebx
call fcn.00443680
push ebx
mov dword [edi + 0x24], eax
call fcn.00443680
mov edx, esi
shl edx, 5
push edx
mov dword [edi + 0x28], eax
call fcn.00443680
push ebx
mov dword [edi + 0x20], eax
call fcn.00443680
push esi
mov dword [edi + 0x2c], eax
call fcn.00443680
mov dword [edi + 0x30], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], eax
je 0x4bf97e
jmp 0x4bf847
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 4]
mov ebx, ecx
lea esi, [ecx*4]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x34], edx
mov edx, dword [edi + 0x28]
shl ebx, 5
add ecx, ebx
push ecx
add edx, esi
push edx
push eax
mov eax, dword [edi + 4]
push eax
call fcn.004be6b0
mov ecx, dword [edi + 0x24]
mov dword [esi + ecx], eax
mov edx, dword [edi + 0x24]
mov eax, dword [esi + edx]
add esp, 0x10
cmp eax, 4
jge 0x4bf8e4
push eax
push str.Failed_to_convert_face_boundary___d__n
push 4
push 0x232b
call fcn.00442f20
mov eax, dword [edi + 0x24]
add esp, 0x10
cmp dword [esi + eax], 0
jle 0x4bf8b1
mov ecx, dword [edi + 0x28]
mov edx, dword [esi + ecx]
push edx
call fcn.00418550
add esp, 4
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp ebx, eax
je 0x4bf96c
test eax, eax
mov esi, dword [esp + 0x30]
jne 0x4bf8cd
mov dword [esp + 0x38], esi
push esi
call fcn.0044bae0
mov eax, dword [edi]
push esi
push eax
call fcn.0042f320
add esp, 0xc
jmp 0x4bf96c
cmp dword [esp + 0x2c], 0
jne 0x4bf90b
mov eax, dword [edi + 0x20]
fld qword [eax]
fstp qword [esp + 0x60]
fld qword [eax + 8]
fstp qword [esp + 0x68]
fld qword [eax + 0x10]
fstp qword [esp + 0x70]
fld qword [eax + 0x18]
fstp qword [esp + 0x78]
jmp 0x4bf963
mov ecx, dword [edi + 0x20]
fld qword [esp + 0x70]
fcomp qword [ebx + ecx + 0x10]
add ebx, ecx
fnstsw ax
test ah, 5
jp 0x4bf926
fld qword [ebx + 0x10]
fstp qword [esp + 0x70]
fld qword [esp + 0x60]
fcomp qword [ebx]
fnstsw ax
test ah, 0x41
jne 0x4bf939
fld qword [ebx]
fstp qword [esp + 0x60]
fld qword [esp + 0x78]
fcomp qword [ebx + 0x18]
fnstsw ax
test ah, 5
jp 0x4bf94e
fld qword [ebx + 0x18]
fstp qword [esp + 0x78]
fld qword [esp + 0x68]
fcomp qword [ebx + 8]
fnstsw ax
test ah, 0x41
jne 0x4bf963
fld qword [ebx + 8]
fstp qword [esp + 0x68]
add dword [esp + 0x2c], 1
mov ebx, dword [esp + 0x34]
cmp ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebx
jne 0x4bf843
test ecx, ecx
mov dword [edi + 0x1c], ecx
jne 0x4bf9a0
push 0x55d524
push 3
push 0x232c
call fcn.00442f20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x60]
call fcn.004bf0d0
fld qword [esp + 0x60]
fdiv qword [edi + 0x38]
sub esp, 8
fadd qword [0x50c4f8]
fstp qword [esp]
call fcn.00500340
fmul qword [edi + 0x38]
fstp qword [esp + 0x58]
fld qword [esp + 0x78]
fdiv qword [edi + 0x38]
fadd qword [0x50c4f8]
fstp qword [esp]
call fcn.00500340
fmul qword [edi + 0x38]
fstp qword [esp + 0x60]
fld qword [esp + 0x70]
fdiv qword [edi + 0x40]
fadd qword [0x50c4f8]
fstp qword [esp]
call fcn.00500340
fmul qword [edi + 0x40]
fstp qword [esp + 0x48]
fld qword [esp + 0x80]
fdiv qword [edi + 0x40]
fadd qword [0x50c4f8]
fstp qword [esp]
call fcn.00500340
fmul qword [edi + 0x40]
mov esi, dword [esp + 0x44]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x5c]
fstp qword [esp + 0x54]
push eax
push 7
push esi
call fcn.00430290
or dword [esi + 0x34], 0x1000000
push edi
call fcn.004bf1f0
mov ecx, dword [edi]
mov ebx, dword [ecx + 0x18]
add esp, 0x1c
cmp dword [edi + 0x1c], 0
mov dword [esp + 0x2c], 0
jle 0x4bfac2
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx + 4]
push eax
mov esi, edi
mov dword [esp + 0x38], edx
call fcn.004bf340
add esp, 4
test eax, eax
je 0x4bfa9f
mov ecx, dword [esp + 0x2c]
push ecx
push edi
call fcn.004becc0
add esp, 8
test eax, eax
jne 0x4bfa98
push str.Failed_to_orientate_face_boundary_n
push 2
push 0x232d
call fcn.00442f20
add esp, 0xc
add dword [esp + 0x2c], 1
jmp 0x4bfab1
push ebx
call fcn.0044bae0
mov edx, dword [edi]
push ebx
push edx
call fcn.0042f320
add esp, 0xc
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x1c]
mov ebx, dword [esp + 0x34]
jl 0x4bfa58
cmp dword [edi + 0x1c], 0
jne 0x4bfadf
push 0x55d56c
push 3
push 0x232e
call fcn.00442f20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004d5de0
add esp, 4
cmp dword [edi + 0x1c], 0
jne 0x4bfb09
push str.Failed_to_convert_face_boundaries_n
push 3
push 0x232f
call fcn.00442f20
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret