Function at 0x41ba10
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
mov eax, dword [edi]
lea eax, [eax + eax*4]
shl eax, 2
mov ecx, dword [eax + 0x87c7e0]
mov edx, dword [eax + 0x87c7e4]
push ebx
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x87c7e8]
mov eax, dword [eax + 0x87c7ec]
push esi
push eax
lea ebx, [esp + 0x54]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
call fcn.0041e2d0
mov ecx, dword [edi + 4]
xor esi, esi
add esp, 4
cmp ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], esi
jle 0x41bb10
lea ebx, [edi + 8]
cmp eax, esi
je 0x41c0e0
mov ecx, dword [ebx]
cmp ecx, dword [edi]
je 0x41baf9
lea eax, [ecx + ecx*4]
shl eax, 2
mov edx, dword [eax + 0x87c7e0]
mov ecx, dword [eax + 0x87c7e4]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x87c7e8]
mov eax, dword [eax + 0x87c7ec]
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x68], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
jne 0x41bad9
fld dword [esp + 0x50]
fchs
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fchs
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fchs
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fchs
fstp dword [esp + 0x5c]
mov ecx, dword [esp + 0x5c]
push 0x3dcccccd
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0041eaf0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
inc ecx
add ebx, 4
cmp ecx, edx
mov dword [esp + 0x20], ecx
jl 0x41ba70
cmp eax, esi
je 0x41c0e0
lea edx, [esp + 0x44]
lea ecx, [esp + 0x38]
mov ebx, eax
call fcn.0041e1c0
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], 0xffffffff
jmp 0x41bb45
xor esi, esi
mov dword [esp + 0xc], 0xffffffff
jmp 0x41bb45
xor esi, esi
fild dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 1
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
fstp dword [esp + ebx + 0x50]
jne 0x41bb6c
mov ecx, dword [esp + ebx + 0x44]
mov dword [esp + 0x5c], ecx
jmp 0x41bb76
fld dword [esp + ebx + 0x38]
fchs
fstp dword [esp + 0x5c]
mov eax, dword [edi]
lea edx, [eax + eax*4]
lea edx, [edx*4 + 0x87c7e0]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x50]
call fcn.0041add0
test eax, eax
jne 0x41bc30
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
jle 0x41bbdb
lea edx, [edi + 8]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
lea edx, [eax + eax*4]
lea edx, [edx*4 + 0x87c7e0]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x50]
call fcn.0041add0
test eax, eax
jne 0x41bbdb
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 4]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x18], ecx
jl 0x41bba7
mov eax, dword [edi + 4]
cmp ebx, eax
jne 0x41bc2c
cmp eax, 0x1a
jle 0x41bbf4
push str.ERROR:_too_many_bevels_n
call fcn.004357b0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x54]
call fcn.0041af20
mov edx, dword [edi + 4]
mov dword [edi + edx*4 + 8], eax
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov dword [edi + eax*4 + 0xd8], 0
mov ecx, dword [edi + 4]
mov dword [edi + ecx*4 + 0x70], edx
mov eax, dword [edi + 4]
add esp, 4
inc eax
mov dword [edi + 4], eax
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
add eax, 2
cmp eax, 1
mov dword [esp + 0xc], eax
jle 0x41bb43
add ebx, 4
cmp ebx, 0xc
mov dword [esp + 0x1c], ebx
jl 0x41bb37
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x41c084
lea ebx, [esi + 8]
mov dword [esp + 0x18], ebx
jmp 0x41bc70
inc eax
fld dword [ebx - 4]
mov dword [esp + 0x34], eax
cdq
idiv ecx
lea eax, [edx + edx*2]
fsub dword [esi + eax*4 + 4]
lea eax, [esi + eax*4]
lea esi, [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [ebx]
fsub dword [eax + 8]
fstp dword [esp + 0x3c]
fld dword [ebx + 4]
fsub dword [eax + 0xc]
fstp dword [esp + 0x40]
call fcn.0042db90
fcomp qword [0x568f38]
fnstsw ax
test ah, 5
jnp 0x41c067
lea ecx, [esp + 0x38]
call fcn.0041aec0
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + eax*4 + 0x38]
cmp edx, 0xbf800000
je 0x41bcf3
cmp edx, 0x3f800000
je 0x41bcf3
inc eax
cmp eax, 3
jl 0x41bcc3
lea edx, [esp + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xffffffff
jmp 0x41bd20
cmp eax, 3
jl 0x41c067
lea edx, [esp + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xffffffff
jmp 0x41bd20
xor ecx, ecx
mov dword [esp + 0xc], 0xffffffff
jmp 0x41bd20
xor ecx, ecx
fild dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], ecx
fstp dword [eax]
fld dword [esp + 0x4c]
lea esi, [esp + 0x50]
fmul dword [esp + 0x3c]
fld dword [esp + 0x48]
fmul dword [esp + 0x40]
fsubp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x44]
fmul dword [esp + 0x40]
fld dword [esp + 0x4c]
fmul dword [esp + 0x38]
fsubp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x48]
fmul dword [esp + 0x38]
fld dword [esp + 0x44]
fmul dword [esp + 0x3c]
fsubp st(1)
fstp dword [esp + 0x58]
call fcn.0042db90
fcomp qword [0x568f38]
fnstsw ax
test ah, 5
jnp 0x41c036
fld dword [esp + 0x58]
mov eax, dword [esp + 0x10]
fmul dword [ebx + 4]
mov edx, dword [eax]
fld dword [esp + 0x54]
xor ecx, ecx
cmp ecx, edx
fmul dword [ebx]
mov dword [esp + 0x1c], ecx
faddp st(1)
fld dword [esp + 0x50]
fmul dword [ebx - 4]
faddp st(1)
fstp dword [esp + 0x5c]
jge 0x41be23
lea esi, [eax + 8]
fld dword [esp + 0x58]
fmul dword [esi + 4]
fld dword [esp + 0x50]
fmul dword [esi - 4]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [esi]
faddp st(1)
fsub dword [esp + 0x5c]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x28]
fcomp qword [0x568e80]
fnstsw ax
test ah, 0x41
je 0x41be1b
fld qword [esp + 0x28]
fcomp qword [0x568fc0]
fnstsw ax
test ah, 5
jp 0x41be13
mov dword [esp + 0x1c], 1
inc ecx
add esi, 0xc
cmp ecx, edx
jl 0x41bdc1
cmp ecx, edx
jl 0x41c036
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41c036
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
jle 0x41be74
lea ecx, [edi + 8]
mov dword [esp + 0x1c], ecx
nop
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
lea edx, [eax + eax*4]
lea edx, [edx*4 + 0x87c7e0]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x50]
call fcn.0041add0
test eax, eax
jne 0x41be74
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x1c], ecx
jl 0x41be40
mov eax, dword [edi + 4]
cmp ebx, eax
jne 0x41c032
cmp eax, 0x1a
jle 0x41be91
push str.ERROR:_too_many_bevels_n
call fcn.004357b0
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ebx, [esp + 0x54]
call fcn.0041af20
mov ecx, dword [edi + 4]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [edi + 4]
add esp, 4
xor esi, esi
test eax, eax
jle 0x41bed8
lea ebx, [edi + 8]
mov edx, dword [edi + 4]
mov eax, dword [edi + edx*4 + 8]
cmp eax, dword [ebx]
jne 0x41becd
push str.WARNING:_bevel_plane_already_used_n
call fcn.004357b0
add esp, 4
mov eax, dword [edi + 4]
inc esi
add ebx, 4
cmp esi, eax
jl 0x41beb5
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [edi + ecx*4 + 0xd8], 0
mov edx, dword [edi + 4]
mov ecx, dword [0x162160c]
mov dword [edi + edx*4 + 0x70], eax
mov edx, dword [0x1621610]
mov eax, dword [ebx]
inc ecx
cmp ecx, edx
mov dword [0x162160c], ecx
jle 0x41bf14
mov dword [0x1621610], ecx
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
mov dword [esp + 0x2c], eax
call fcn.005268b7
mov esi, eax
add esp, 4
test esi, esi
je 0x41c0e6
mov ecx, dword [esp + 0x28]
push ecx
push 0
push esi
call fcn.00432670
mov eax, dword [ebx]
lea edx, [eax + eax*2]
lea eax, [edx*4 + 4]
push eax
push ebx
push esi
call fcn.00432540
mov ecx, dword [edi + 4]
mov eax, dword [edi + ecx*4 + 8]
lea eax, [eax + eax*4]
shl eax, 2
mov edx, dword [eax + 0x87c7e0]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x87c7e4]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x87c7e8]
mov eax, dword [eax + 0x87c7ec]
mov dword [esp + 0x84], eax
mov eax, dword [edi + ecx*4 + 0x70]
add esp, 0x18
test eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x68], edx
jne 0x41bfc5
fld dword [esp + 0x60]
fchs
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fchs
fstp dword [esp + 0x64]
fld dword [esp + 0x68]
fchs
fstp dword [esp + 0x68]
fld dword [esp + 0x6c]
fchs
fstp dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
push 0x3dcccccd
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0041eaf0
mov esi, dword [esp + 0x2c]
add esp, 0x10
test esi, esi
jne 0x41bff8
push str.WARNING:_CM_AddFacetBevels..._invalid_bevel_n
call fcn.00435820
add esp, 4
jmp 0x41c032
cmp dword [esi], 0xdeaddead
jne 0x41c00f
push 0x564e18
push 0
call fcn.00435ad0
add esp, 8
mov ebx, dword [0x162160c]
dec ebx
push esi
mov dword [esi], 0xdeaddead
mov dword [0x162160c], ebx
call fcn.00526479
mov eax, dword [edi + 4]
add esp, 4
inc eax
mov dword [edi + 4], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
add eax, 2
cmp eax, 1
mov dword [esp + 0xc], eax
jle 0x41bd1e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
inc eax
add edx, 4
cmp eax, 3
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jl 0x41bd12
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [ecx]
mov esi, dword [esp + 0x10]
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x18], ebx
jl 0x41bc70
cmp dword [esi], 0xdeaddead
jne 0x41c09b
push 0x564e18
push 0
call fcn.00435ad0
add esp, 8
mov ebx, dword [0x162160c]
dec ebx
push esi
mov dword [esi], 0xdeaddead
mov dword [0x162160c], ebx
call fcn.00526479
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edi + edx*4 + 8], eax
mov ecx, dword [edi + 4]
mov dword [edi + ecx*4 + 0xd8], 0
mov edx, dword [edi + 4]
mov dword [edi + edx*4 + 0x70], 1
mov eax, dword [edi + 4]
add esp, 4
inc eax
mov dword [edi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00462b20
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00462450
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00462450
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.00527e27
int3