Function at 0x41d0f0
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x571a9c
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0x838]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x40]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x44]
push eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x70], eax
call dword [sym.imp.MSVCR100.dll_remove]
fldz
fcom qword [ebp + 0x34]
add esp, 4
fnstsw ax
test ah, 1
je 0x41d81d
fcomp qword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x41d81f
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jb 0x41d81f
fld qword [ebp + 0x14]
mov edi, dword [sym.imp.MSVCR100.dll_printf]
sub esp, 8
fstp qword [esp]
push str._Body_Radius_:__.3lf_n
call edi
fld qword [ebp + 0x1c]
add esp, 4
fstp qword [esp]
push str._Flat_Radius_:__.3lf_n
call edi
fld qword [ebp + 0x24]
add esp, 4
fstp qword [esp]
push str._Ramp_angle__:__.3lf_degrees_n
call edi
fldz
fld qword [ebp + 0x2c]
add esp, 0xc
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41d1ed
sub esp, 8
fstp qword [esp]
push str._Ramp_radius__:__.3lf_n
call edi
add esp, 0xc
jmp 0x41d1f9
push str._Ramp_on_ctrs_n
fstp st(0)
call edi
add esp, 4
fld qword [ebp + 0x34]
sub esp, 8
fstp qword [esp]
push str._Step________:__.3lf_n
call edi
mov eax, dword [esp + 0x44]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x41d223
push eax
push str._Lead_in_pts_:__s_n
call edi
add esp, 8
jmp 0x41d247
mov eax, dword [ebp + 0x3c]
dec eax
je 0x41d23d
dec eax
je 0x41d236
dec eax
jne 0x41d247
push str._Start_from_middle_n
jmp 0x41d242
push str._Start_from_internal_s__ctr_s__n
jmp 0x41d242
push str._Start_from_external_ctr_n
call edi
add esp, 4
push 0x57bb5c
call edi
mov ecx, dword [esp + 0x70]
push 0x57b8d0
push ecx
call fcn.004178e0
add esp, 0xc
lea ecx, [esp + 0x224]
mov edi, eax
call fcn.00423300
mov dword [esp + 0x840], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x840], 3
cmp ecx, esi
je 0x41d2ba
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x78]
call fcn.0041cb80
add esp, 4
lea ecx, [esp + 0xfc]
call fcn.00417a80
fldz
mov eax, dword [ebx + 0x10]
fst qword [esp + 0x17c]
mov edx, dword [ebx]
mov dword [esp + 0x1f8], 0x417ee0
mov eax, dword [eax]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebx + 0x20]
fld qword [edx + ecx*8]
fsub qword [eax]
mov dword [0x59ba40], edi
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x41d313
fadd qword [esp + 0x1d4]
fstp qword [esp + 0x1d4]
jmp 0x41d315
fstp st(0)
mov byte [esp + 0x37], 1
call dword [sym.imp.MSVCR100.dll_clock]
mov ecx, dword [ebx]
mov dword [esp + 0x84], eax
mov dword [esp + 0x38], esi
mov esi, dword [ebx + 4]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x41d750
jmp 0x41d354
mov ebx, dword [esp + 0x70]
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x38]
mov eax, dword [edx + eax*4]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + edx*8 + 0x24]
lea esi, [ecx + edx*8]
mov ecx, dword [ebx + 0x20]
lea eax, [eax + eax*2]
fld qword [ecx + eax*8]
lea eax, [ecx + eax*8]
sub esp, 8
fst qword [esp + 0x6c]
fstp qword [esp]
push str._Morphing_of_level_z___.3lf_..._n
lea ebx, [eax + 8]
call dword [sym.imp.MSVCR100.dll_printf]
fld qword [esi + 0x10]
fld qword [ebp + 0x34]
add esp, 0xc
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x3c]
lea ecx, [esp + 0x78]
push ecx
push edx
sub esp, 0x40
fstp qword [esp + 0x38]
lea eax, [esi + 0x28]
lea ecx, [esp + 0x270]
fstp qword [esp + 0x30]
fld qword [ebp + 0x2c]
fstp qword [esp + 0x28]
fld qword [ebp + 0x24]
fstp qword [esp + 0x20]
fld qword [ebp + 0x1c]
fstp qword [esp + 0x18]
fld qword [ebp + 0x14]
fstp qword [esp + 0x10]
fld qword [esp + 0xb0]
fstp qword [esp + 8]
fld qword [ebp + 0xc]
fstp qword [esp]
push ebx
push eax
call fcn.00428470
test eax, eax
jne 0x41d6e8
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x228]
call fcn.00425070
test eax, eax
jne 0x41d6e8
mov ecx, dword [esp + 0x54]
cmp ecx, dword [esp + 0x58]
je 0x41d6e8
fld qword [esi + 0x18]
fst qword [esp + 0x3c]
fld qword [esp + 0x64]
fcom st(1)
fnstsw ax
test ah, 5
mov eax, dword [esp + 0x44]
jp 0x41d45d
fsubp st(1)
cmp eax, dword [esp + 0x48]
je 0x41d45f
add eax, 0x10
fld qword [eax]
add eax, 0x20
fadd st(1)
lea edx, [eax - 0x10]
fstp qword [eax - 0x20]
cmp edx, dword [esp + 0x48]
jne 0x41d444
mov eax, dword [esp + 0x44]
jmp 0x41d45f
fstp st(1)
cmp byte [esp + 0x37], 0
fstp st(0)
mov ebx, dword [sym.imp.MSVCR100.dll_fprintf]
jne 0x41d4a0
fld qword [0x57b8c8]
push 0xfffffc14
sub esp, 8
fst qword [esp]
push 4
sub esp, 8
fst qword [esp]
push 4
sub esp, 8
fstp qword [esp]
push 4
push 0x57b600
push edi
call ebx
mov eax, dword [esp + 0x74]
add esp, 0x30
fld1
lea ecx, [esp + 0x8c]
fstp qword [esp + 0xa4]
mov byte [esp + 0x37], 0
fldz
fstp qword [esp + 0xac]
fld qword [eax + 0x10]
fld qword [eax + 8]
fld qword [eax]
fstp qword [esp + 0x8c]
lea eax, [esp + 0xa4]
push eax
push ecx
fstp qword [esp + 0x9c]
lea ecx, [esp + 0x104]
fstp qword [esp + 0xa4]
call fcn.004efee0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
sub eax, ecx
sar eax, 5
push edi
call fcn.004183d0
fld qword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 4
push 4
push 0xfffffc15
sub esp, 8
sub edx, eax
fstp qword [esp]
sar edx, 4
push edx
push eax
push edi
call fcn.00418d50
fld1
mov eax, dword [esp + 0x74]
fstp qword [esp + 0xd0]
fldz
add esp, 0x1c
fstp qword [esp + 0xbc]
lea ecx, [esp + 0x8c]
fld qword [eax - 8]
fld qword [eax - 0x10]
fstp qword [esp + 0x8c]
lea eax, [esp + 0xb4]
push eax
push ecx
fstp qword [esp + 0x9c]
lea ecx, [esp + 0x104]
fld qword [esp + 0x44]
fstp qword [esp + 0xa4]
call fcn.004f0bc0
fld qword [esi + 8]
mov eax, dword [esi + 0x20]
fst qword [esp + 0x64]
fsubr qword [esp + 0x3c]
fstp qword [esp + 0x3c]
test eax, eax
jle 0x41d70e
mov esi, eax
lea esp, [esp]
fld qword [0x57b8c8]
push 0xfffffc14
sub esp, 8
fst qword [esp]
push 4
sub esp, 8
fst qword [esp]
push 4
sub esp, 8
fstp qword [esp]
push 4
push 0x57b600
push edi
call ebx
mov eax, dword [esp + 0x74]
add esp, 0x30
cmp eax, dword [esp + 0x48]
je 0x41d5f8
fld qword [esp + 0x64]
add eax, 0x10
fld qword [eax]
add eax, 0x20
fsub st(1)
lea edx, [eax - 0x10]
fstp qword [eax - 0x20]
cmp edx, dword [esp + 0x48]
jne 0x41d5df
mov eax, dword [esp + 0x44]
fstp st(0)
fld1
lea ecx, [esp + 0x8c]
fstp qword [esp + 0xd4]
fldz
fstp qword [esp + 0xdc]
fld qword [eax + 0x10]
fld qword [eax + 8]
fld qword [eax]
fstp qword [esp + 0x8c]
lea eax, [esp + 0xd4]
push eax
push ecx
fstp qword [esp + 0x9c]
lea ecx, [esp + 0x104]
fstp qword [esp + 0xa4]
call fcn.004efee0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
sub eax, ecx
sar eax, 5
push edi
call fcn.004183d0
fld qword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 4
push 4
push 0xfffffc15
sub esp, 8
sub edx, eax
fstp qword [esp]
sar edx, 4
push edx
push eax
push edi
call fcn.00418d50
fld1
mov eax, dword [esp + 0x74]
fstp qword [esp + 0xe0]
fldz
add esp, 0x1c
fstp qword [esp + 0xcc]
lea ecx, [esp + 0xe4]
fld qword [eax - 8]
fld qword [eax - 0x10]
fstp qword [esp + 0xe4]
lea eax, [esp + 0xc4]
push eax
push ecx
fstp qword [esp + 0xf4]
lea ecx, [esp + 0x104]
fld qword [esp + 0x44]
fstp qword [esp + 0xfc]
call fcn.004f0bc0
dec esi
fld qword [esp + 0x3c]
fsub qword [esp + 0x64]
fstp qword [esp + 0x3c]
jne 0x41d5a0
jmp 0x41d70e
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push 0x57bb5c
call esi
fld qword [esp + 0x68]
push ecx
fstp qword [esp]
push str._ERROR_in_level__lf___n
call esi
push 0x57bb5c
call esi
add esp, 0x10
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov ebx, dword [esp + 0x38]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
mov dword [esp + 0x38], ebx
cmp ebx, eax
jl 0x41d350
cmp byte [esp + 0x37], 0
jne 0x41d750
lea ecx, [esp + 0xfc]
call fcn.004fb0f0
call dword [sym.imp.MSVCR100.dll_clock]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x90], eax
call fcn.004d6100
xor ebx, ebx
add esp, 8
cmp edi, ebx
je 0x41d785
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push 0x57bb5c
call esi
mov eax, dword [esp + 0x70]
push eax
push str._Output__s_n
call esi
push 0x57bb5c
call esi
mov eax, dword [esp + 0x84]
add esp, 0x10
cmp eax, ebx
je 0x41d7bc
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
cmp eax, ebx
je 0x41d7d9
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x41d7f6
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x224]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x840], 0xffffffff
call fcn.004233d0
xor eax, eax
jmp 0x41d822
fstp st(0)
or eax, 0xffffffff
mov ecx, dword [esp + 0x838]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x7f0]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret