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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ec70a
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x615cbc]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x615cbc]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x40], ecx
push 1
lea ecx, [esp + 0xc0]
mov dword [esp + 0x54], eax
call fcn.004120b0
mov edx, dword [str._WNCZONE_shell3_tri.bin]
mov eax, dword [0x5fa698]
mov ecx, dword [0x5fa69c]
mov dword [esp + 0x114], edx
mov edx, dword [0x5fa6a0]
xor ebx, ebx
push 0x68
mov dword [esp + 0x124], edx
mov dword [esp + 0x11c], eax
mov eax, dword [0x5fa6a4]
mov dword [esp + 0x120], ecx
mov ecx, dword [0x5fa6a8]
lea edx, [esp + 0x130]
push ebx
push edx
mov dword [esp + 0x1b4], ebx
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], ecx
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x120]
push 0x80
push eax
call fcn.00409dc0
push 0x40
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 0x18
mov dword [esp + 0x5c], esi
cmp esi, ebx
je 0x4037f0
lea ecx, [esp + 0x114]
or eax, 0xffffffff
push ecx
mov ecx, esi
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
call fcn.00406130
test eax, eax
jne 0x4037f0
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.MSVCR90.dll_printf]
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x24]
push edx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
push ecx
push eax
push str.__Surfaces_:__d___d.._d__n
call edi
mov edx, dword [esp + 0x34]
push edx
push str.___Faces____:__d_n
call edi
mov eax, dword [esp + 0x44]
push eax
push str.___Edges____:__d_n
call edi
mov ecx, dword [esp + 0x40]
push ecx
push str.___Vertices_:__d_n
call edi
push 0x5fa4f4
call edi
mov eax, dword [esi + 0x18]
add esp, 0x2c
push eax
lea ecx, [esp + 0xc0]
call fcn.00412120
mov eax, dword [esi + 0x18]
push eax
lea ecx, [esp + 0x9c]
call fcn.00403fd0
lea ecx, [esp + 0x14]
call fcn.00401e30
mov dword [esp + 0x18], eax
mov byte [eax + 0x11], 1
mov eax, dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x18]
mov dword [eax], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 8], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov eax, dword [esi]
mov byte [esp + 0x1a8], 2
mov dword [esp + 0x24], 0xffffffff
cmp eax, ebx
jbe 0x403309
lea edx, [esp + 0x24]
push edx
xor ecx, ecx
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.00411f00
cmp dword [esi + 0x18], ebx
mov dword [esp + 0x24], ebx
jle 0x4036aa
mov dword [esp + 0x34], ebx
lea ebx, [ebx]
lea ecx, [esp + 0x98]
call fcn.00404030
mov ebx, dword [esi + 0x1c]
add ebx, dword [esp + 0x34]
test byte [ebx + 0x1c], 8
jne 0x403691
push 0x58
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x1a8], 3
test eax, eax
je 0x403366
mov ecx, eax
call fcn.004126f0
mov edi, eax
mov dword [esp + 0x3c], edi
jmp 0x403372
mov dword [esp + 0x3c], 0
mov edi, dword [esp + 0x3c]
mov eax, dword [ebx]
push eax
mov ecx, edi
mov byte [esp + 0x1ac], 2
call fcn.00411b10
mov ecx, edi
call fcn.00411b00
mov ecx, dword [ebx + 0x18]
mov edi, eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x30], edi
cmp ecx, eax
je 0x4033cb
mov byte [esp + 0x58], 0
mov edx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x48]
push edx
push ecx
push eax
push eax
call fcn.004127b0
add esp, 0x18
mov dword [edi + 8], eax
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
lea ecx, [edi + 0x10]
push eax
push edx
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x2c], ecx
call fcn.004024f0
mov edi, dword [ebx + 0x18]
sub edi, dword [ebx + 0x14]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
inc edi
add eax, 1
je 0x403400
mov ecx, dword [esp + 0x30]
push eax
call fcn.00402b90
test edi, edi
jbe 0x40340e
mov ecx, dword [esp + 0x20]
push edi
call fcn.00402c90
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jg 0x403673
lea ecx, [eax + eax*8]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x38], ecx
jmp 0x403434
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x14]
add eax, ecx
cmp dword [eax], 3
jne 0x403781
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 4]
cmp byte [edi + 0x11], 0
mov dword [esp + 0x28], ecx
mov ebx, edi
jne 0x40347c
mov edx, dword [ebx + 8]
push edx
lea ecx, [esp + 0x18]
call fcn.00401ad0
mov ebx, dword [ebx]
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebx + 0x11], 0
mov edi, ebx
je 0x403458
mov eax, dword [esp + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x18]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + ebx*4]
mov edx, dword [esi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edx
call fcn.00402310
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402310
inc ebx
cmp ebx, 3
jl 0x403492
cmp dword [esp + 0x1c], 3
jne 0x4037c4
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx]
cmp ebx, ecx
je 0x40360a
lea edx, [esp + 0x8c]
mov dword [esp + 0x28], edx
mov edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x64]
cmp dword [eax + edi*4], 0
jge 0x4035a9
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, edi
shl eax, 5
add eax, dword [esi + 4]
fld dword [eax + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp qword [esp + 0x74]
fld dword [eax + 0x14]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp qword [esp + 0x7c]
fld dword [eax + 0x18]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
fstp dword [esp + 0x10]
sub ecx, dword [eax + 4]
fld dword [esp + 0x10]
mov eax, 0x2aaaaaab
fstp qword [esp + 0x84]
imul ecx
sar edx, 2
mov esi, edx
lea ecx, [esp + 0x74]
shr esi, 0x1f
push ecx
mov ecx, dword [esp + 0x34]
add esi, edx
call fcn.00402f70
mov edx, dword [esp + 0x64]
mov dword [edx + edi*4], esi
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
mov edx, dword [eax + edi*4]
mov eax, dword [esp + 0x28]
mov dword [eax], edx
add eax, 4
cmp byte [ebx + 0x11], 0
mov dword [esp + 0x28], eax
jne 0x403602
mov eax, dword [ebx + 8]
cmp byte [eax + 0x11], 0
jne 0x4035e2
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
jne 0x403602
mov ebx, eax
mov eax, dword [ebx]
cmp byte [eax + 0x11], 0
je 0x4035d6
jmp 0x403602
mov eax, dword [ebx + 4]
cmp byte [eax + 0x11], 0
jne 0x403600
jmp 0x4035f0
cmp ebx, dword [eax + 8]
jne 0x403600
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x11], 0
je 0x4035f0
mov ebx, eax
cmp ebx, ecx
jne 0x403505
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x44]
push eax
add ecx, 0x10
mov byte [esp + 0x1ac], 4
call fcn.00403000
add dword [esp + 0x38], 0x24
or eax, 0xffffffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
inc eax
cmp eax, dword [esp + 0x2c]
mov byte [esp + 0x1a8], 2
mov dword [esp + 0x20], eax
jle 0x403430
mov edi, dword [esp + 0x3c]
mov ecx, edi
call fcn.00411c90
push edi
lea ecx, [esp + 0xc0]
call fcn.00412570
mov edi, dword [sym.imp.MSVCR90.dll_printf]
mov eax, dword [esp + 0x24]
add dword [esp + 0x34], 0x40
inc eax
cmp eax, dword [esi + 0x18]
mov dword [esp + 0x24], eax
jl 0x403320
xor ebx, ebx
lea ecx, [esp + 0x98]
call fcn.00404150
push 0x5fa4f4
call edi
add esp, 4
mov ecx, esi
call fcn.00401980
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x54]
push ecx
lea edx, [esp + 0xc4]
push edx
call fcn.00401580
mov esi, dword [esp + 0x4c]
add esp, 0xc
cmp esi, ebx
je 0x403702
push esi
lea ecx, [esp + 0xc0]
call fcn.00411cb0
push esi
push str._Output_:__s_n
call edi
add esp, 8
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x403713
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1b4], 0
call fcn.00402210
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0xbc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004125d0
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00423eca
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push 0x5fa5f4
call esi
push str.Shell_not_triangulated__
push str._ERROR_:__s_n
call esi
push str.init_wnc_mesh0.cpp
push str.__FILE_:__s_n
call esi
push 0xfc
push str.__LINE_:__d_n
call esi
push 0x5fa5f4
call esi
add esp, 0x20
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push 0x5fa5f4
call esi
push str.Shell_not_triangulated__
push str._ERROR_:__s_n
call esi
push str.init_wnc_mesh0.cpp
push str.__FILE_:__s_n
call esi
push 0x10d
jmp 0x4037ab
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push 0x5fa5f4
call esi
push str._Cannot_load_Shell_Model___n
push str._ERROR_:__s_n
call esi
push str.init_wnc_mesh0.cpp
push str.__FILE_:__s_n
call esi
push 0xbe
jmp 0x4037ab