Function at 0x403ca0
Capabilities:
Delete file
Terminate process

Disassembly:
sub esp, 0x410
mov eax, dword [0x615cbc]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 1
cmp dword [esp + 0x420], esi
push edi
mov edi, dword [esp + 0x428]
mov byte [esp + 0x13], bl
jle 0x403d1e
mov ebp, dword [sym.imp.MSVCR90.dll_toupper]
lea esp, [esp]
mov eax, dword [edi + esi*4]
cmp byte [eax], 0x2d
jne 0x403d61
movsx eax, byte [eax + 1]
push eax
call ebp
add esp, 4
inc esi
cmp eax, 0x42
je 0x403d04
cmp eax, 0x53
jne 0x403d61
mov byte [esp + 0x13], 1
jmp 0x403d15
cmp dword [esp + 0x424], esi
jle 0x403db2
mov ebx, dword [edi + esi*4]
inc esi
cmp esi, dword [esp + 0x424]
jl 0x403ce0
fldz
fstp qword [esp + 0x14]
test ebx, ebx
je 0x403dc1
lea eax, [esp + 0x14]
push eax
push 0x5fa828
push ebx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
cmp eax, 1
jne 0x403d52
fldz
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x403dc1
mov eax, str.Invalid_BREP_argument
call fcn.00401350
jmp 0x403f9b
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x5fa4f4
call esi
mov edi, dword [sym.imp.MSVCR90.dll_fprintf]
add eax, 0x40
push eax
call edi
add esp, 8
push str.ARGUMENTS_:__n
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push str.____BREP_tesselation_tolerance__n
call esi
add eax, 0x40
push eax
call edi
add esp, 8
push 0x5fa4f4
call esi
add eax, 0x40
push eax
call edi
add esp, 8
jmp 0x403f99
mov eax, str.Missing_BREP_argument
call fcn.00401350
jmp 0x403f9b
mov ebp, dword [sym.imp.MSVCR90.dll_printf]
push 0x5fa4f4
call ebp
push str._n
call ebp
push str._BUILD_WNC_MESH_MODEL_n
call ebp
mov ecx, dword [str._WNCZONE_wnc_mesh.bin]
mov eax, dword [0x5fa7a0]
mov edx, dword [0x5fa79c]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x5fa7a4]
push 0x1ea
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov edx, dword [0x5fa7a8]
mov dword [esp + 0x34], eax
mov ax, word [0x5fa7ac]
lea ecx, [esp + 0x42]
push 0
push ecx
mov dword [esp + 0x44], edx
mov word [esp + 0x48], ax
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x34]
push 0x200
push edx
call fcn.00409dc0
add esp, 0x20
test eax, eax
je 0x403e7c
push 0x5fa5f4
call ebp
push str.Wexpnom_error
push str._ERROR_:__s_n
call ebp
push str.init_wnc_mesh0.cpp
push str.__FILE_:__s_n
call ebp
push 0x1fa
push str.__LINE_:__d_n
call ebp
push 0x5fa5f4
call ebp
add esp, 0x20
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov ecx, 5
mov esi, str._WNCZONE__wnc_mesh.stl
lea edi, [esp + 0x21c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1e9
lea eax, [esp + 0x237]
push 0
push eax
movsb byte es:[edi], byte [esi]
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x228]
push 0x200
push ecx
call fcn.00409dc0
add esp, 0x14
test eax, eax
je 0x403ee8
push 0x5fa5f4
call ebp
push str.Wexpnom_error
push str._ERROR_:__s_n
call ebp
push str.init_wnc_mesh0.cpp
push str.__FILE_:__s_n
call ebp
push 0x1fe
jmp 0x403e63
lea edx, [esp + 0x21c]
push edx
call dword [sym.imp.MSVCR90.dll_remove]
add esp, 4
test ebx, ebx
jne 0x403f42
push str._USING_SHELL_CONVERSION_n
call ebp
push str._n
call ebp
push 0x5fa4f4
call ebp
add esp, 0xc
cmp byte [esp + 0x13], bl
je 0x403f31
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x220]
call fcn.00403100
add esp, 4
jmp 0x403f8f
lea ecx, [esp + 0x1c]
push ecx
xor ecx, ecx
call fcn.00403100
add esp, 4
jmp 0x403f8f
push str._USING_BREP_TESSELATION_n
call ebp
push str._n
call ebp
push 0x5fa4f4
call ebp
fld qword [esp + 0x20]
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x403f7a
lea edx, [esp + 0x21c]
push edx
sub esp, 8
lea eax, [esp + 0x28]
fstp qword [esp]
push eax
jmp 0x403f87
push 0
sub esp, 8
lea ecx, [esp + 0x28]
fstp qword [esp]
push ecx
call fcn.00403820
add esp, 0x10
push 0x5fa4f4
call ebp
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423eca
add esp, 0x410
ret