Function at 0x414230
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 + 0x86e480]
mov edx, dword [eax + 0x86e484]
push ebx
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x86e488]
mov eax, dword [eax + 0x86e48c]
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.00416af0
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 0x414330
lea ebx, [edi + 8]
cmp eax, esi
je 0x414900
mov ecx, dword [ebx]
cmp ecx, dword [edi]
je 0x414319
lea eax, [ecx + ecx*4]
shl eax, 2
mov edx, dword [eax + 0x86e480]
mov ecx, dword [eax + 0x86e484]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x86e488]
mov eax, dword [eax + 0x86e48c]
mov dword [esp + 0x5c], eax
cmp dword [ebx + 0x68], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
jne 0x4142f9
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.00417310
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 0x414290
cmp eax, esi
je 0x414900
lea edx, [esp + 0x44]
lea ecx, [esp + 0x38]
mov ebx, eax
call fcn.004169e0
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], 0xffffffff
jmp 0x414365
xor esi, esi
mov dword [esp + 0xc], 0xffffffff
jmp 0x414365
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 0x41438c
mov ecx, dword [esp + ebx + 0x44]
mov dword [esp + 0x5c], ecx
jmp 0x414396
fld dword [esp + ebx + 0x38]
fchs
fstp dword [esp + 0x5c]
mov eax, dword [edi]
lea edx, [eax + eax*4]
lea edx, [edx*4 + 0x86e480]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x50]
call fcn.004135f0
test eax, eax
jne 0x414450
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
jle 0x4143fb
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 + 0x86e480]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x50]
call fcn.004135f0
test eax, eax
jne 0x4143fb
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 4]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x18], ecx
jl 0x4143c7
mov eax, dword [edi + 4]
cmp ebx, eax
jne 0x41444c
cmp eax, 0x1a
jle 0x414414
push str.ERROR:_too_many_bevels_n
call fcn.0042e2f0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x54]
call fcn.00413740
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 0x414363
add ebx, 4
cmp ebx, 0xc
mov dword [esp + 0x1c], ebx
jl 0x414357
mov esi, dword [esp + 0x10]
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
jle 0x4148a4
lea ebx, [esi + 8]
mov dword [esp + 0x18], ebx
jmp 0x414490
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.00426700
fcomp qword [0x55a5e0]
fnstsw ax
test ah, 5
jnp 0x414887
lea ecx, [esp + 0x38]
call fcn.004136e0
xor ecx, ecx
xor eax, eax
mov edx, dword [esp + eax*4 + 0x38]
cmp edx, 0xbf800000
je 0x414513
cmp edx, 0x3f800000
je 0x414513
inc eax
cmp eax, 3
jl 0x4144e3
lea edx, [esp + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xffffffff
jmp 0x414540
cmp eax, 3
jl 0x414887
lea edx, [esp + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], 0xffffffff
jmp 0x414540
xor ecx, ecx
mov dword [esp + 0xc], 0xffffffff
jmp 0x414540
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.00426700
fcomp qword [0x55a5e0]
fnstsw ax
test ah, 5
jnp 0x414856
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 0x414643
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 [0x55a4c8]
fnstsw ax
test ah, 0x41
je 0x41463b
fld qword [esp + 0x28]
fcomp qword [0x55a658]
fnstsw ax
test ah, 5
jp 0x414633
mov dword [esp + 0x1c], 1
inc ecx
add esi, 0xc
cmp ecx, edx
jl 0x4145e1
cmp ecx, edx
jl 0x414856
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x414856
mov eax, dword [edi + 4]
xor ebx, ebx
test eax, eax
jle 0x414694
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 + 0x86e480]
lea esi, [esp + 0x14]
lea ecx, [esp + 0x50]
call fcn.004135f0
test eax, eax
jne 0x414694
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
inc ebx
add ecx, 4
cmp ebx, eax
mov dword [esp + 0x1c], ecx
jl 0x414660
mov eax, dword [edi + 4]
cmp ebx, eax
jne 0x414852
cmp eax, 0x1a
jle 0x4146b1
push str.ERROR:_too_many_bevels_n
call fcn.0042e2f0
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ebx, [esp + 0x54]
call fcn.00413740
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 0x4146f8
lea ebx, [edi + 8]
mov edx, dword [edi + 4]
mov eax, dword [edi + edx*4 + 8]
cmp eax, dword [ebx]
jne 0x4146ed
push str.WARNING:_bevel_plane_already_used_n
call fcn.0042e2f0
add esp, 4
mov eax, dword [edi + 4]
inc esi
add ebx, 4
cmp esi, eax
jl 0x4146d5
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 [0x14c676c]
mov dword [edi + edx*4 + 0x70], eax
mov edx, dword [0x14c6770]
mov eax, dword [ebx]
inc ecx
cmp ecx, edx
mov dword [0x14c676c], ecx
jle 0x414734
mov dword [0x14c6770], ecx
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
mov dword [esp + 0x2c], eax
call fcn.0051b1e7
mov esi, eax
add esp, 4
test esi, esi
je 0x414906
mov ecx, dword [esp + 0x28]
push ecx
push 0
push esi
call fcn.0042b1c0
mov eax, dword [ebx]
lea edx, [eax + eax*2]
lea eax, [edx*4 + 4]
push eax
push ebx
push esi
call fcn.0042b090
mov ecx, dword [edi + 4]
mov eax, dword [edi + ecx*4 + 8]
lea eax, [eax + eax*4]
shl eax, 2
mov edx, dword [eax + 0x86e480]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x86e484]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 0x86e488]
mov eax, dword [eax + 0x86e48c]
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 0x4147e5
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.00417310
mov esi, dword [esp + 0x2c]
add esp, 0x10
test esi, esi
jne 0x414818
push str.WARNING:_CM_AddFacetBevels..._invalid_bevel_n
call fcn.0042e360
add esp, 4
jmp 0x414852
cmp dword [esi], 0xdeaddead
jne 0x41482f
push 0x5579c0
push 0
call fcn.0042e650
add esp, 8
mov ebx, dword [0x14c676c]
dec ebx
push esi
mov dword [esi], 0xdeaddead
mov dword [0x14c676c], ebx
call fcn.0051ada8
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 0x41453e
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 0x414532
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 0x414490
cmp dword [esi], 0xdeaddead
jne 0x4148bb
push 0x5579c0
push 0
call fcn.0042e650
add esp, 8
mov ebx, dword [0x14c676c]
dec ebx
push esi
mov dword [esi], 0xdeaddead
mov dword [0x14c676c], ebx
call fcn.0051ada8
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.00451300
push 0x10
push str.WIN_OUT_OF_MEM_TITLE
call fcn.00450c30
add esp, 4
push eax
push str.WIN_OUT_OF_MEM_BODY
call fcn.00450c30
add esp, 4
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call fcn.0051c8f0
int3