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

Disassembly:
push 0xffffffffffffffff
push 0x60dade
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x67dc50]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
mov edi, ecx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], ebp
call fcn.00516680
cmp dword [esp + 0x84], 1
mov dword [esp + 0x74], 0
jne 0x40b5eb
mov eax, dword [esp + 0x2c]
lea ecx, [eax + eax]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, edi
call fcn.00427770
fld dword [edi + 0x14c]
fcompp
fnstsw ax
test ah, 0x41
je 0x40b6a5
mov eax, dword [esp + 0x2c]
fld qword [0x62e348]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add ecx, eax
sub esp, 8
mov eax, esp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
fstp qword [eax]
mov dword [esp + 0x1c], esp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x54]
call fcn.00518690
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 1
call fcn.00405fd0
fild dword [edi + 0x150]
push 1
sub esp, 8
fdivr qword [0x62e348]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x50]
mov byte [esp + 0x80], 2
fstp qword [esp]
push edx
call fcn.0051caa0
push 0x1c
mov ebx, eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
mov byte [esp + 0x74], 3
test ebp, ebp
je 0x40b52b
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [ebp], vtable.BMB2DGeometry.0
jmp 0x40b52d
xor ebp, ebp
fldz
push ebx
mov ecx, ebp
fstp dword [ebp + 0xc]
mov byte [esp + 0x78], 2
mov byte [ebp + 8], 4
mov dword [ebp + 0x10], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::AllocateGeUnitArray_int_]
xor esi, esi
test ebx, ebx
jle 0x40b5bf
lea ecx, [ecx]
cmp esi, dword [esp + 0x30]
jge 0x40b55f
mov eax, dword [esp + 0x38]
lea eax, [eax + esi*8]
jmp 0x40b569
push esi
lea ecx, [esp + 0x34]
call fcn.005eb180
cmp esi, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
jge 0x40b57f
mov edx, dword [esp + 0x38]
lea eax, [edx + esi*8]
jmp 0x40b589
push esi
lea ecx, [esp + 0x34]
call fcn.005eb180
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.00427770
push ecx
lea edx, [esp + 0x18]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.00427770
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
inc esi
cmp esi, ebx
jl 0x40b550
mov ecx, dword [esp + 0x18]
push ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElement::Add2DShape_class_BMB2DGeometry__]
lea ecx, [esp + 0x30]
mov byte [esp + 0x74], 1
call fcn.005ee4c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], 0
call fcn.00518980
jmp 0x40b6a5
push 0x1c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x74], 4
test esi, esi
je 0x40b614
mov ecx, esi
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [esi], vtable.BMB2DGeometry.0
jmp 0x40b616
xor esi, esi
fldz
push 2
mov ecx, esi
fstp dword [esi + 0xc]
mov byte [esp + 0x78], 0
mov byte [esi + 8], 0
mov dword [esi + 0x10], 2
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::AllocateGeUnitArray_int_]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
mov dword [esp + 0x14], ecx
push edx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00427770
push ecx
lea eax, [esp + 0x18]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.00427770
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
push ecx
fstp dword [esp]
push 7
push 0
mov ecx, esi
call ebx
fldz
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [ecx + ecx]
fstp dword [esp]
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x1c], edx
call fcn.00427770
push ecx
fstp dword [esp]
push 1
push 1
mov ecx, esi
call ebx
push esi
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElement::Add2DShape_class_BMB2DGeometry__]
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], 0xffffffff
call fcn.005166b0
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005f617e
add esp, 0x64
ret 0xc