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

Disassembly:
push 0xffffffffffffffff
push 0x6125d0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x682d00]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x258]
mov esi, dword [esp + 0x25c]
mov edi, ecx
lea ecx, [esp + 0xd0]
mov dword [esp + 0x58], ebp
call fcn.005ebb00
push 0
push esi
mov ecx, edi
mov dword [esp + 0x258], 0
call fcn.0040c220
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41bb76
lea ecx, [esp + 0x2c]
call fcn.00516940
push 0
push 0
push 1
push 0
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [edi + 0x1f8]
mov byte [esp + 0x268], 1
call fcn.00550600
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x41bb57
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
push edx
push ebp
mov ecx, edi
call fcn.0041b9a0
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x41bb40
lea ecx, [esp + 0x2c]
call fcn.00516990
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 0
call fcn.004925b0
jmp 0x41c152
push 0x1c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x40], ebp
mov byte [esp + 0x250], 2
test ebp, ebp
je 0x41bba3
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [ebp], vtable.BMB2DGeometry.0
jmp 0x41bba5
xor ebp, ebp
mov al, byte [esp + 0x260]
fldz
push ebx
fstp dword [ebp + 0xc]
mov ecx, ebp
mov byte [esp + 0x254], 0
mov byte [ebp + 8], al
mov dword [ebp + 0x10], ebx
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::AllocateGeUnitArray_int_]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0055f620
push esi
lea ecx, [esp + 0x124]
call fcn.00570df0
lea ecx, [esp + 0x120]
mov byte [esp + 0x250], 3
call fcn.005710a0
lea ecx, [esp + 0x120]
call fcn.005712e0
cmp eax, 0x20
jne 0x41bc57
mov edx, dword [esp + 0x140]
push edx
lea ecx, [esp + 0xac]
call fcn.0057fd90
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x254], 4
call fcn.0057fe60
mov ecx, dword [eax]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x24], edx
mov byte [esp + 0x250], 3
call fcn.0057fe30
lea ecx, [esp + 0x120]
xor esi, esi
mov dword [esp + 0x28], 1
call fcn.005710a0
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x130]
ja 0x41c133
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
jmp 0x41bc90
lea ecx, [esp + 0x120]
call fcn.005712e0
cmp eax, 0x20
je 0x41c113
lea ecx, [esp + 0x120]
call fcn.005712e0
cmp eax, 0x11
je 0x41bdc8
cmp eax, 0x16
jne 0x41c113
mov ecx, dword [esp + 0x140]
push ecx
lea ecx, [esp + 0xac]
call fcn.0057ca40
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
mov byte [esp + 0x250], 5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x20], eax
jne 0x41bd1a
cmp dword [esp + 0x24], ecx
jne 0x41bd1a
lea ecx, [esp + 0xa8]
mov byte [esp + 0x250], 3
call fcn.0057ca70
jmp 0x41c113
cmp dword [esp + 0x28], 1
jne 0x41bd67
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x74]
push ecx
mov ecx, edi
mov dword [esp + 0x78], edx
mov dword [esp + 0x54], eax
call fcn.0042ac80
push ecx
lea edx, [esp + 0x54]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call ebx
inc esi
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x60]
mov dword [esp + 0x68], ecx
push edx
mov ecx, edi
mov dword [esp + 0x64], eax
call fcn.0042ac80
push ecx
lea eax, [esp + 0x6c]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call ebx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x24], edx
inc esi
mov byte [esp + 0x250], 3
call fcn.0057ca70
jmp 0x41c113
mov eax, dword [esp + 0x140]
push eax
lea ecx, [esp + 0xf8]
call fcn.00576e40
mov edx, dword [esp + 0x100]
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x104]
mov byte [esp + 0x250], 6
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x100], eax
jne 0x41bf83
cmp edx, ecx
jne 0x41bf83
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
mov ecx, edi
call fcn.0042ac80
push ecx
lea ecx, [esp + 0x7c]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call ebx
lea edx, [esp + 0xe4]
push edx
lea ecx, [esp + 0xf8]
inc esi
call fcn.0051c850
push eax
lea ecx, [esp + 0x8c]
call fcn.005eeba0
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x80]
mov dword [esp + 0x54], ecx
push edx
mov ecx, edi
mov dword [esp + 0x84], eax
call fcn.0042ac80
push ecx
lea eax, [esp + 0x58]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 3
push esi
mov ecx, ebp
call ebx
mov ecx, dword [esp + 0x110]
lea edx, [ecx + ecx]
lea eax, [esp + 0x94]
push eax
mov ecx, edi
inc esi
mov dword [esp + 0x98], edx
call fcn.0042ac80
fstp dword [esp + 0x14]
fldz
sub esp, 8
fstp dword [esp + 4]
mov ecx, ebp
fld dword [esp + 0x1c]
fstp dword [esp]
push 1
push esi
call ebx
lea ecx, [esp + 0xf4]
inc esi
call fcn.0051dfc0
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x114]
and ecx, 0xfffffff9
cmp cx, 1
jne 0x41bf24
fld dword [esp + 0x14]
fmul qword [0x631e00]
fstp dword [esp + 0x14]
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0xf8]
call fcn.0051b3c0
fld qword [eax]
fld dword [esp + 0x14]
sub esp, 8
fstp dword [esp + 4]
mov ecx, ebp
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
push 5
push esi
call ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x5c]
mov dword [esp + 0x90], ecx
push edx
mov ecx, edi
inc esi
mov dword [esp + 0x60], eax
call fcn.0042ac80
lea eax, [esp + 0x90]
jmp 0x41c0d7
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xf8]
call fcn.0051f3d0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x38]
jne 0x41bfac
cmp dword [esp + 0x48], eax
je 0x41c068
cmp ecx, dword [esp + 0x18]
jne 0x41bfc0
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x1c]
je 0x41c068
mov edx, dword [esp + 0x38]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
push eax
mov ecx, edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0xa8], edx
call fcn.0042ac80
push ecx
lea ecx, [esp + 0xa8]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 0xd
push esi
mov ecx, ebp
call ebx
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
inc esi
mov dword [esp + 0x70], edx
mov dword [esp + 0xa4], eax
call fcn.0042ac80
push ecx
lea edx, [esp + 0xa4]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call ebx
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov dword [esp + 0x9c], ecx
push edx
mov ecx, edi
inc esi
mov dword [esp + 0x50], eax
call fcn.0042ac80
lea eax, [esp + 0x9c]
jmp 0x41c0d7
cmp dword [esp + 0x28], 1
jne 0x41c0b1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, edi
mov dword [esp + 0x9c], eax
call fcn.0042ac80
push ecx
lea edx, [esp + 0x9c]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call ebx
inc esi
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x84]
mov dword [esp + 0x40], ecx
push edx
mov ecx, edi
mov dword [esp + 0x88], eax
call fcn.0042ac80
lea eax, [esp + 0x40]
push ecx
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042ac80
push ecx
fstp dword [esp]
push 6
push esi
mov ecx, ebp
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0xf4]
inc esi
mov dword [esp + 0x24], edx
mov byte [esp + 0x250], 3
call fcn.00572710
lea ecx, [esp + 0x120]
call fcn.005710d0
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x130]
jbe 0x41bc90
mov ecx, dword [esp + 0x58]
push ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMBElement::Add2DShape_class_BMB2DGeometry__]
lea ecx, [esp + 0x120]
mov byte [esp + 0x250], 0
call fcn.00570110
lea ecx, [esp + 0xd0]
mov dword [esp + 0x250], 0xffffffff
call fcn.005ebd80
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.005f9aee
add esp, 0x240
ret 0xc