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

Disassembly:
push 0xffffffffffffffff
push 0x60ec40
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x67dc50]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67dc50]
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.005e8490
push 0
push esi
mov ecx, edi
mov dword [esp + 0x258], 0
call fcn.0040bcd0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a7d6
lea ecx, [esp + 0x2c]
call fcn.00513f30
push 0
push 0
push 1
push 0
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [edi + 0x1f0]
mov byte [esp + 0x268], 1
call fcn.0054d1c0
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x41a7b7
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
push edx
push ebp
mov ecx, edi
call fcn.0041a600
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x41a7a0
lea ecx, [esp + 0x2c]
call fcn.00513f80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 0
call fcn.0048f310
jmp 0x41adb2
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 0x41a803
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [ebp], vtable.BMB2DGeometry.0
jmp 0x41a805
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.0055c160
push esi
lea ecx, [esp + 0x124]
call fcn.0056d910
lea ecx, [esp + 0x120]
mov byte [esp + 0x250], 3
call fcn.0056dbc0
lea ecx, [esp + 0x120]
call fcn.0056de00
cmp eax, 0x20
jne 0x41a8b7
mov edx, dword [esp + 0x140]
push edx
lea ecx, [esp + 0xac]
call fcn.0057c850
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x254], 4
call fcn.0057c920
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.0057c8f0
lea ecx, [esp + 0x120]
xor esi, esi
mov dword [esp + 0x28], 1
call fcn.0056dbc0
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x130]
ja 0x41ad93
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
jmp 0x41a8f0
lea ecx, [esp + 0x120]
call fcn.0056de00
cmp eax, 0x20
je 0x41ad73
lea ecx, [esp + 0x120]
call fcn.0056de00
cmp eax, 0x11
je 0x41aa28
cmp eax, 0x16
jne 0x41ad73
mov ecx, dword [esp + 0x140]
push ecx
lea ecx, [esp + 0xac]
call fcn.00579570
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 0x41a97a
cmp dword [esp + 0x24], ecx
jne 0x41a97a
lea ecx, [esp + 0xa8]
mov byte [esp + 0x250], 3
call fcn.005795a0
jmp 0x41ad73
cmp dword [esp + 0x28], 1
jne 0x41a9c7
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.00427770
push ecx
lea edx, [esp + 0x54]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.00427770
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.00427770
push ecx
lea eax, [esp + 0x6c]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.00427770
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.005795a0
jmp 0x41ad73
mov eax, dword [esp + 0x140]
push eax
lea ecx, [esp + 0xf8]
call fcn.00573970
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 0x41abe3
cmp edx, ecx
jne 0x41abe3
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
mov ecx, edi
call fcn.00427770
push ecx
lea ecx, [esp + 0x7c]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.00427770
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.00519cc0
push eax
lea ecx, [esp + 0x8c]
call fcn.005eb4a0
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.00427770
push ecx
lea eax, [esp + 0x58]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.00427770
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.00427770
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.0051b430
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x114]
and ecx, 0xfffffff9
cmp cx, 1
jne 0x41ab84
fld dword [esp + 0x14]
fmul qword [0x62dd90]
fstp dword [esp + 0x14]
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0xf8]
call fcn.005189f0
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.00427770
lea eax, [esp + 0x90]
jmp 0x41ad37
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xf8]
call fcn.0051c840
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x38]
jne 0x41ac0c
cmp dword [esp + 0x48], eax
je 0x41acc8
cmp ecx, dword [esp + 0x18]
jne 0x41ac20
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x1c]
je 0x41acc8
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.00427770
push ecx
lea ecx, [esp + 0xa8]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.00427770
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.00427770
push ecx
lea edx, [esp + 0xa4]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.00427770
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.00427770
lea eax, [esp + 0x9c]
jmp 0x41ad37
cmp dword [esp + 0x28], 1
jne 0x41ad11
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.00427770
push ecx
lea edx, [esp + 0x9c]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.00427770
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.00427770
lea eax, [esp + 0x40]
push ecx
fstp dword [esp]
push eax
mov ecx, edi
call fcn.00427770
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.0056f230
lea ecx, [esp + 0x120]
call fcn.0056dbf0
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x130]
jbe 0x41a8f0
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.0056cc30
lea ecx, [esp + 0xd0]
mov dword [esp + 0x250], 0xffffffff
call fcn.005e8710
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.005f617e
add esp, 0x240
ret 0xc