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

Disassembly:
push 0xffffffffffffffff
push 0x614560
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x685e38]
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.005ed1b0
push 0
push esi
mov ecx, edi
mov dword [esp + 0x258], 0
call fcn.0040c210
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41bf36
lea ecx, [esp + 0x2c]
call fcn.00517a80
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.00551cb0
xor esi, esi
cmp dword [esp + 0x2c], esi
jle 0x41bf17
lea esp, [esp]
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + esi*4]
push edx
push ebp
mov ecx, edi
call fcn.0041bd60
inc esi
cmp esi, dword [esp + 0x2c]
jl 0x41bf00
lea ecx, [esp + 0x2c]
call fcn.00517ad0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x250], 0
call fcn.00405850
jmp 0x41c512
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 0x41bf63
mov ecx, ebp
call dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::constructor_void_]
mov dword [ebp], vtable.BMB2DGeometry.0
jmp 0x41bf65
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.00560cd0
push esi
lea ecx, [esp + 0x124]
call fcn.00572480
lea ecx, [esp + 0x120]
mov byte [esp + 0x250], 3
call fcn.00572730
lea ecx, [esp + 0x120]
call fcn.00572970
cmp eax, 0x20
jne 0x41c017
mov edx, dword [esp + 0x140]
push edx
lea ecx, [esp + 0xac]
call fcn.005813b0
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0xac]
mov byte [esp + 0x254], 4
call fcn.00581480
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.00581450
lea ecx, [esp + 0x120]
xor esi, esi
mov dword [esp + 0x28], 1
call fcn.00572730
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x130]
ja 0x41c4f3
mov ebx, dword [sym.imp.BMB_NX_C9.dll_public:_void___thiscall_BMB2DGeometry::PutGeUnit_int__unsigned_char__float__float_]
jmp 0x41c050
lea ecx, [esp + 0x120]
call fcn.00572970
cmp eax, 0x20
je 0x41c4d3
lea ecx, [esp + 0x120]
call fcn.00572970
cmp eax, 0x11
je 0x41c188
cmp eax, 0x16
jne 0x41c4d3
mov ecx, dword [esp + 0x140]
push ecx
lea ecx, [esp + 0xac]
call fcn.0057e0d0
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 0x41c0da
cmp dword [esp + 0x24], ecx
jne 0x41c0da
lea ecx, [esp + 0xa8]
mov byte [esp + 0x250], 3
call fcn.0057e100
jmp 0x41c4d3
cmp dword [esp + 0x28], 1
jne 0x41c127
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.0042afc0
push ecx
lea edx, [esp + 0x54]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.0042afc0
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.0042afc0
push ecx
lea eax, [esp + 0x6c]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042afc0
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.0057e100
jmp 0x41c4d3
mov eax, dword [esp + 0x140]
push eax
lea ecx, [esp + 0xf8]
call fcn.005784d0
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 0x41c343
cmp edx, ecx
jne 0x41c343
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x70], ecx
push eax
mov ecx, edi
call fcn.0042afc0
push ecx
lea ecx, [esp + 0x7c]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.0042afc0
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.0051d930
push eax
lea ecx, [esp + 0x8c]
call fcn.005f0660
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.0042afc0
push ecx
lea eax, [esp + 0x58]
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042afc0
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.0042afc0
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.0051f0a0
fstp dword [esp + 0x14]
mov ecx, dword [esp + 0x114]
and ecx, 0xfffffff9
cmp cx, 1
jne 0x41c2e4
fld dword [esp + 0x14]
fmul qword [0x633e08]
fstp dword [esp + 0x14]
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0xf8]
call fcn.0051c490
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.0042afc0
lea eax, [esp + 0x90]
jmp 0x41c497
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xf8]
call fcn.005204b0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x38]
jne 0x41c36c
cmp dword [esp + 0x48], eax
je 0x41c428
cmp ecx, dword [esp + 0x18]
jne 0x41c380
mov ecx, dword [esp + 0x48]
cmp ecx, dword [esp + 0x1c]
je 0x41c428
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.0042afc0
push ecx
lea ecx, [esp + 0xa8]
fstp dword [esp]
push ecx
mov ecx, edi
call fcn.0042afc0
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.0042afc0
push ecx
lea edx, [esp + 0xa4]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.0042afc0
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.0042afc0
lea eax, [esp + 0x9c]
jmp 0x41c497
cmp dword [esp + 0x28], 1
jne 0x41c471
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.0042afc0
push ecx
lea edx, [esp + 0x9c]
fstp dword [esp]
push edx
mov ecx, edi
call fcn.0042afc0
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.0042afc0
lea eax, [esp + 0x40]
push ecx
fstp dword [esp]
push eax
mov ecx, edi
call fcn.0042afc0
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.00573da0
lea ecx, [esp + 0x120]
call fcn.00572760
mov eax, dword [esp + 0x12c]
cmp eax, dword [esp + 0x130]
jbe 0x41c050
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.005717a0
lea ecx, [esp + 0xd0]
mov dword [esp + 0x250], 0xffffffff
call fcn.005ed430
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.005fb9ce
add esp, 0x240
ret 0xc