Function at 0x40a15a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0xb4
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], edx
lea edx, [esp + 0x80]
mov edi, eax
xor eax, eax
mov dword [esp + 0x80], eax
push eax
push 0x4af0e0
mov dword [ebx], eax
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0x94], 0
lea edx, [esp + 0x94]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x14
mov dword [esp + 0x58], 0x4b1098
push eax
push 0x4af0e4
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0xa8], 0
lea edx, [esp + 0xa8]
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0x19
mov dword [esp + 0x74], str._____2.__Set_by_material.
push eax
push 0x4af0ec
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0xbc], 0
lea edx, [esp + 0xbc]
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], 0x20
mov dword [esp + 0x90], str._____3.__Set_by_No._of_element_.
push eax
push 0x4af0f4
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0xd0], 0
lea edx, [esp + 0xd0]
lea eax, [esp + 0xa8]
mov dword [esp + 0xa8], 0x1e
mov dword [esp + 0xac], str._____4.__Set_by_reading_file.
push eax
push 0x4af0fc
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0xe4], 0
lea edx, [esp + 0xe4]
lea eax, [esp + 0xc4]
mov dword [esp + 0xc4], 0x16
mov dword [esp + 0xc8], str._____5.__Output_mesh_.
push eax
push 0x4af104
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
add esp, 0x78
mov dword [esp + 0x80], 0
lea edx, [esp + 0x80]
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x6c], str._____0.__Return.
push eax
push 0x4af10c
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0x94], 0
lea edx, [esp + 0x94]
lea eax, [esp + 0x84]
mov dword [esp + 0x84], 1
mov dword [esp + 0x88], 0x2e55718
push 0x4c8668
push eax
push 0x4af114
push 0x384ff00
push 0xfffffffffffffffc
push edx
call fcn.0041a518
add esp, 0x2c
movzx eax, byte [0x2e55718]
cmp eax, 0x30
je 0x40a521
cmp eax, 0x31
jne 0x40a3c5
mov edi, dword [edi]
test edi, edi
jle 0x40a3b6
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
mov esi, 1
mov ecx, 0x10
mov ebx, dword [ecx + eax - 0x10]
mov dword [ecx + edx - 0x10], ebx
mov ebx, dword [ecx + eax - 0xc]
add esi, 1
mov dword [ecx + edx - 0xc], ebx
mov ebx, dword [ecx + eax - 8]
mov dword [ecx + edx - 8], ebx
mov ebx, dword [ecx + eax - 4]
mov dword [ecx + edx - 4], ebx
add ecx, 0x10
cmp esi, edi
jle 0x40a389
mov ebx, dword [ebp + 0x18]
mov dword [ebx], edi
add esp, 0xb4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0x32
jne 0x40a52e
mov dword [esp + 0x10], 0x17
lea ecx, [esp + 0x80]
xor eax, eax
mov dword [ebx], eax
mov dword [esp + 0x14], str._Input_No._of_material:
mov dword [esp + 0x80], eax
lea edx, [esp + 0x10]
push edx
push 0x4af1bc
push 0x384ff00
push 0xffffffffffffffff
push ecx
call fcn.00423530
mov dword [esp + 0x94], 0
lea edx, [esp + 0x94]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x46
mov dword [esp + 0x30], 0x2e556a0
push 0x4c8674
push eax
push 0x4af1c4
push 0x384ff00
push 0xfffffffffffffffc
push edx
call fcn.0041a518
mov dword [esp + 0xac], 0
lea edx, [esp + 0xac]
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x46
mov dword [esp + 0x30], 0x2e556a0
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0x2e556f0
push eax
push 0x4af1cc
push 0x384ff02
push edx
call fcn.0042db40
add esp, 0x3c
mov esi, dword [esp + 0x24]
mov edx, dword [edi]
mov eax, 0xffffffd8
mov edi, dword [eax + 0x2e55718]
test edi, edi
jle 0x40a518
test edx, edx
jle 0x40a518
mov dword [esp + 0xac], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
mov ebx, 1
mov ecx, 0x10
mov eax, dword [esp + 0xac]
mov edx, dword [ebp + 0x14]
cmp eax, dword [edx + ebx*4 - 4]
jne 0x40a502
mov edi, dword [ebp + 0x18]
mov eax, dword [esp + 0x3c]
mov edx, dword [edi]
add edx, 1
mov dword [edi], edx
mov edi, dword [ecx + esi - 0x10]
shl edx, 4
mov dword [edx + eax - 0x10], edi
mov edi, dword [ecx + esi - 0xc]
mov dword [edx + eax - 0xc], edi
mov edi, dword [ecx + esi - 8]
mov dword [edx + eax - 8], edi
mov edi, dword [ecx + esi - 4]
mov dword [edx + eax - 4], edi
mov eax, dword [esp + 0x20]
add ecx, 0x10
add ebx, 1
cmp ebx, eax
jle 0x40a4c1
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add eax, 4
jne 0x40a49a
add esp, 0xb4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
cmp eax, 0x33
jne 0x40a763
mov dword [esp + 0x80], 0
lea edx, [esp + 0x80]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], str._Input_ie1_ie2_de_ic_dce_0000_stop_:
push eax
push 0x4af18c
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0x94], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x94]
lea edx, [esp + 0x4c]
push edx
push 0x4af194
push 0x384ff00
push 0xfffffffffffffffc
push ecx
call fcn.00420c28
lea eax, [esp + 0x44]
mov dword [esp + 0xa0], eax
lea ecx, [esp + 0xa8]
lea edx, [esp + 0xa0]
push edx
push 0x4af19c
push ecx
call fcn.004219b8
lea eax, [esp + 0x60]
mov dword [esp + 0xd4], eax
lea ecx, [esp + 0xb4]
lea edx, [esp + 0xd4]
push edx
push 0x4af1a4
push ecx
call fcn.004219b8
lea eax, [esp + 0x70]
mov dword [esp + 0xe8], eax
lea ecx, [esp + 0xc0]
lea edx, [esp + 0xe8]
push edx
push 0x4af1ac
push ecx
call fcn.004219b8
lea eax, [esp + 0x80]
mov dword [esp + 0xfc], eax
lea ecx, [esp + 0xcc]
lea edx, [esp + 0xfc]
push edx
push 0x4af1b4
push ecx
call fcn.004219b8
add esp, 0x58
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x40a521
mov edi, dword [esp + 0x30]
add edi, 1
test edi, edi
jg 0x40a65f
mov dword [esp + 0x30], 1
jmp 0x40a537
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x7c], esi
mov eax, esi
mov dword [esp + 0xc], edi
mov ecx, 1
sub eax, ebx
add eax, dword [esp + 0x1c]
cdq
idiv esi
mov dword [esp + 0x28], ebx
mov esi, eax
test eax, eax
jle 0x40a752
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0xa4], edx
mov edi, ecx
imul edi, esi
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x28]
neg esi
add edi, esi
mov esi, dword [esp + 0xac]
mov dword [esp + 0xac], esi
shl edi, 4
shl edx, 4
add edi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov esi, edi
mov ecx, dword [esp + 0x3c]
add dword [esp + 0xa4], 1
add edx, 0x10
mov eax, ebx
add ebx, dword [esp + 0x7c]
shl eax, 4
mov edi, dword [eax + esi - 0x10]
mov dword [edx + ecx - 0x10], edi
mov edi, dword [eax + esi - 0xc]
mov dword [edx + ecx - 0xc], edi
mov edi, dword [eax + esi - 8]
mov eax, dword [eax + esi - 4]
mov dword [edx + ecx - 8], edi
mov dword [edx + ecx - 4], eax
mov eax, dword [esp + 0xac]
add eax, 0xffffffff
mov dword [esp + 0xac], eax
test eax, eax
jg 0x40a6d6
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 8]
mov esi, dword [ebp + 0x18]
add ecx, 1
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xc]
mov dword [esi], edx
cmp ecx, edi
jle 0x40a67b
mov dword [esp + 0x30], ecx
jmp 0x40a537
mov edx, dword [esp + 0xc]
add ecx, 1
cmp ecx, edx
jle 0x40a67b
jmp 0x40a749
cmp eax, 0x34
jne 0x40a915
mov dword [esp + 0x80], 0
lea edx, [esp + 0x80]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x11
mov dword [esp + 0x2c], str._Input_file_name:
push eax
push 0x4af154
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0x94], 0
lea edx, [esp + 0x94]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x46
mov dword [esp + 0x48], 0x2e556a0
push 0x4c8680
push eax
push 0x4af15c
push 0x384ff00
push 0xfffffffffffffffc
push edx
call fcn.0041a518
mov dword [esp + 0xac], 0
lea edx, [esp + 0xac]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x46
mov dword [esp + 0x48], 0x2e556a0
mov dword [esp + 0x4c], 4
push eax
push 0x4af164
push 0x384ff00
push 0x16
push edx
call fcn.0041da04
mov dword [esp + 0xc0], 0
mov dword [esp + 0x78], ebx
lea edx, [esp + 0xc0]
lea eax, [esp + 0x78]
push eax
push 0x4af174
push 0x384ff00
push 0x16
push edx
call fcn.00420c28
mov eax, dword [esp + 0x90]
mov ecx, dword [ebx]
mov dword [esp + 0x58], eax
lea edi, [esp + 0xd4]
mov dword [esp + 0xd4], 0
lea esi, [esp + 0x54]
test ecx, ecx
jge 0x40a87d
mov ecx, 0
mov edx, 1
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
push esi
push 0x4af17c
push 0x384ff00
push 0x16
push edi
call fcn.00420c28
lea edx, [esp + 0xe8]
xor eax, eax
mov dword [esp + 0xe8], eax
push eax
push 0x4af184
push 0x384ff00
push 0x16
push edx
call fcn.00429ffc
add esp, 0x7c
mov edx, dword [ebx]
test edx, edx
jle 0x40a521
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x3c]
mov eax, 1
mov ecx, dword [ebx]
shl ecx, 4
mov edi, dword [ecx + esi - 0x10]
mov dword [ebx], edi
mov edi, dword [ecx + esi - 0xc]
mov dword [ebx + 4], edi
mov edi, dword [ecx + esi - 8]
mov ecx, dword [ecx + esi - 4]
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], ecx
add ebx, 0x10
add eax, 1
cmp eax, edx
jle 0x40a8e6
jmp 0x40a521
cmp eax, 0x35
jne 0x40a521
mov dword [esp + 0x80], 0
lea edx, [esp + 0x80]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x19
mov dword [esp + 0x2c], str._Input_file_name_for_out:
push eax
push 0x4af11c
push 0x384ff00
push 0xffffffffffffffff
push edx
call fcn.00423530
mov dword [esp + 0x94], 0
lea edx, [esp + 0x94]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x46
mov dword [esp + 0x48], 0x2e556a0
push 0x4c868c
push eax
push 0x4af124
push 0x384ff00
push 0xfffffffffffffffc
push edx
call fcn.0041a518
mov dword [esp + 0xac], 0
lea edx, [esp + 0xac]
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x46
mov dword [esp + 0x48], 0x2e556a0
mov dword [esp + 0x4c], 4
push eax
push 0x4af12c
push 0x384ff00
push 0x16
push edx
call fcn.0041da04
mov eax, dword [ebx]
mov dword [esp + 0xc0], 0
mov dword [esp + 0x78], eax
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x78]
push edx
push 0x4af13c
push 0x384ff00
push 0x16
push ecx
call fcn.00423530
mov eax, dword [esp + 0x90]
mov ecx, dword [ebx]
mov dword [esp + 0x58], eax
lea esi, [esp + 0xd4]
mov dword [esp + 0xd4], 0
lea ebx, [esp + 0x54]
test ecx, ecx
jge 0x40aa31
mov ecx, 0
mov edx, 1
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
push ebx
push 0x4af144
push 0x384ff00
push 0x16
push esi
call fcn.00423530
lea edx, [esp + 0xe8]
xor eax, eax
mov dword [esp + 0xe8], eax
push eax
push 0x4af14c
push 0x384ff00
push 0x16
push edx
call fcn.00429ffc
add esp, 0x7c
add esp, 0xb4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret