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

Disassembly:
sub esp, 0x26c
mov eax, dword [0x44dd70]
xor eax, esp
mov dword [esp + 0x268], eax
mov eax, dword [esp + 0x27c]
mov edx, dword [0x455150]
mov ecx, dword [esp + 0x280]
push ebx
mov ebx, dword [esp + 0x274]
push ebp
mov dword [esp + 0x40], eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edx*4]
mov ebp, dword [eax + 0x18]
push esi
mov esi, dword [eax + 0x14]
push edi
mov edi, dword [esp + 0x288]
mov dword [esp + 0x44], ecx
test ebx, ebx
jne 0x4032a3
lea eax, [ebx + 1]
jmp 0x4037e7
mov ecx, dword [edi + 0x50]
mov edx, dword [ecx + 0x28]
lea eax, [eax + 8]
push ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], eax
mov dword [eax], 0
call fcn.00401680
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4032ed
cmp dword [esp + 0x28], eax
jne 0x4032e3
push ebx
push str._MISSING_FILE__s_n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov eax, 5
jmp 0x4037e7
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x284]
mov dword [esp + 0x2c], eax
jne 0x403327
mov ebx, dword [sym.imp.MSVCR90.dll_printf]
push 0x4426a8
call ebx
push str._Checking_the_toolpath..._n
call ebx
mov ebx, dword [esp + 0x20]
add esp, 8
push ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.004261c0
jmp 0x40332b
mov ebx, dword [esp + 0x18]
call dword [sym.imp.VCOMP90.DLL_omp_get_wtime]
fstp qword [esp + 0x4c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00401600
add esp, 0x14
cmp eax, 4
jne 0x40368c
cmp dword [esp + 0x28], 0
jne 0x403371
push ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.004261c0
fld dword [esp + 0x14]
lea edx, [esp + 0x1c]
fstp dword [esp + 0x20]
push edx
fld dword [esp + 0x14]
lea eax, [esp + 0x14]
fstp dword [esp + 0x28]
push eax
fld dword [esp + 0x24]
lea ecx, [esp + 0x1c]
fadd qword [esp + 0x29c]
push ecx
fstp dword [esp + 0x24]
call fcn.004017c0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004017c0
mov dword [esi], 0
mov dword [ebp], 0
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
add esp, 0x18
fld dword [esp + 0x10]
lea edx, [esp + 0x34]
fstp dword [esp + 0x38]
push edx
fld dword [esp + 0x20]
mov ecx, esi
fstp dword [esp + 0x40]
call fcn.00406030
fld dword [esp + 0x20]
lea eax, [esp + 0x34]
fstp dword [esp + 0x34]
push eax
fld dword [esp + 0x28]
mov ecx, ebp
fstp dword [esp + 0x3c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x40]
call fcn.00406030
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00401600
add esp, 0x14
cmp eax, 4
jne 0x40368c
lea ebx, [ebx]
cmp dword [esp + 0x28], 0
jne 0x403452
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.004261c0
fld dword [esp + 0x14]
lea ecx, [esp + 0x1c]
fstp dword [esp + 0x20]
push ecx
fld dword [esp + 0x14]
lea edx, [esp + 0x14]
fstp dword [esp + 0x28]
push edx
fld dword [esp + 0x24]
lea eax, [esp + 0x1c]
fadd qword [esp + 0x29c]
push eax
fstp dword [esp + 0x24]
call fcn.004017c0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004017c0
fld dword [esp + 0x2c]
fstp dword [esp + 0x4c]
add esp, 0x18
fld dword [esp + 0x10]
lea ecx, [esp + 0x34]
fstp dword [esp + 0x38]
push ecx
fld dword [esp + 0x20]
mov ecx, esi
fstp dword [esp + 0x40]
call fcn.00406030
fld dword [esp + 0x20]
lea edx, [esp + 0x54]
fstp dword [esp + 0x54]
push edx
fld dword [esp + 0x28]
mov ecx, ebp
fstp dword [esp + 0x5c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x60]
call fcn.00406030
cmp byte [0x44b023], 0
jne 0x403534
mov ecx, dword [esi]
cmp ecx, 2
jne 0x403508
mov eax, dword [esi + 0xc]
lea ecx, [eax + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00411a00
jmp 0x403662
lea eax, [ecx - 1]
test eax, eax
jl 0x4036f7
cmp eax, ecx
jge 0x4036f7
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xc]
lea eax, [eax + edx*4]
push eax
mov ecx, edi
call fcn.00411a80
test al, al
jne 0x403662
mov ecx, dword [esp + 0x44]
push ebp
push ecx
push edi
call fcn.00402720
push 0x18
push 0x44de84
push 0xc
push 0x44b028
push 1
push 0x44de7c
push 3
call sub.VCOMP90.DLL__vcomp_flush
add esp, 0x28
cmp dword [edi + 0xa8], 0
je 0x4035fe
cmp byte [0x44de7c], 0
jne 0x4035fe
push 0x18
push 0x44de84
push 0xc
push 0x44b028
push 1
push 0x44de7c
push 3
mov byte [0x44de7c], 1
call sub.VCOMP90.DLL__vcomp_flush
mov eax, dword [ebx]
mov edx, eax
sub edx, dword [esi]
add esp, 0x1c
mov dword [0x44b028], edx
mov dword [0x44b02c], eax
cmp dword [esi], 0
jle 0x4036f7
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov dword [0x44de84], ecx
mov edx, dword [eax + 4]
mov dword [0x44de88], edx
mov eax, dword [eax + 8]
mov dword [0x44de8c], eax
cmp dword [esi], 1
jle 0x4036f7
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
add eax, 0xc
mov dword [0x44de90], ecx
mov edx, dword [eax + 4]
mov dword [0x44de94], edx
mov eax, dword [eax + 8]
mov dword [0x44de98], eax
mov ecx, dword [esp + 0x48]
push esi
push ecx
push edi
call fcn.00402720
mov dword [esi], 0
mov dword [ebp], 0
fld dword [esp + 0x20]
fstp dword [esp + 0x78]
add esp, 0xc
fld dword [esp + 0x10]
lea edx, [esp + 0x6c]
fstp dword [esp + 0x70]
push edx
fld dword [esp + 0x20]
mov ecx, esi
fstp dword [esp + 0x78]
call fcn.00406030
fld dword [esp + 0x20]
lea eax, [esp + 0x60]
fstp dword [esp + 0x60]
push eax
fld dword [esp + 0x28]
mov ecx, ebp
fstp dword [esp + 0x68]
fld dword [esp + 0x1c]
fstp dword [esp + 0x6c]
call fcn.00406030
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00401600
add esp, 0x14
cmp eax, 4
je 0x403440
cmp dword [esi], 1
jle 0x403789
mov eax, dword [esp + 0x44]
push ebp
push eax
push edi
call fcn.00402720
push 0x18
push 0x44de84
push 0xc
push 0x44b028
push 1
push 0x44de7c
push 3
call sub.VCOMP90.DLL__vcomp_flush
add esp, 0x28
cmp dword [edi + 0xa8], 0
je 0x40377a
cmp byte [0x44de7c], 0
jne 0x40377a
mov eax, dword [ebx]
mov byte [0x44de7c], 1
mov ecx, eax
sub ecx, dword [esi]
mov dword [0x44b02c], eax
mov dword [0x44b028], ecx
cmp dword [esi], 0
jg 0x403708
push str.Invalid_Array_Index
push 0x40
push 0x442f2c
call fcn.00405a00
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov dword [0x44de84], edx
mov ecx, dword [eax + 4]
mov dword [0x44de88], ecx
mov edx, dword [eax + 8]
mov dword [0x44de8c], edx
cmp dword [esi], 1
jg 0x40373b
push str.Invalid_Array_Index
push 0x40
push 0x442f2c
call fcn.00405a00
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
push 0x18
push 0x44de84
add eax, 0xc
push 0xc
push 0x44b028
mov dword [0x44de90], ecx
mov edx, dword [eax + 4]
push 1
mov dword [0x44de94], edx
mov eax, dword [eax + 8]
push 0x44de7c
push 3
mov dword [0x44de98], eax
call sub.VCOMP90.DLL__vcomp_flush
add esp, 0x1c
mov ecx, dword [esp + 0x48]
push esi
push ecx
push edi
call fcn.00402720
add esp, 0xc
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
mov esi, dword [esp + 0x2c]
add esp, 4
test esi, esi
jne 0x4037ac
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call fcn.004261c0
call dword [sym.imp.VCOMP90.DLL_omp_get_wtime]
fsub qword [esp + 0x4c]
push esi
lea edx, [esp + 0x7c]
push str._........The_Thread__d_elapsed_time___n
fstp qword [esp + 0x54]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
fld qword [esp + 0x58]
add esp, 0xc
lea eax, [esp + 0x78]
push eax
sub esp, 8
fstp qword [esp]
call fcn.00401490
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x278]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043cde0
add esp, 0x26c
ret