Function at 0x411330
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dcbd
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x4fdca8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x228]
call fcn.0044f540
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x464]
call fcn.0044f540
mov byte [ebp - 4], 1
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402324
add esp, 8
mov dword [ebp - 0x460], eax
cmp dword [ebp - 0x460], 0
je 0x4113c4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x464]
call fcn.0044f790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0044f790
jmp 0x4118cf
push 0x4ca878
lea ecx, [ebp - 0x464]
call fcn.00450270
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x468]
push edx
push 0x200
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
mov ecx, dword [ebp - 0x468]
push ecx
push 0x200
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
mov eax, dword [ebp - 0x468]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00450250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x464]
call fcn.0044f790
mov edx, dword [0x4ca87c]
mov dword [ebp - 0x66c], edx
mov eax, dword [0x4ca880]
mov dword [ebp - 0x668], eax
mov ecx, dword [0x4ca884]
mov dword [ebp - 0x664], ecx
mov dx, word [0x4ca888]
mov word [ebp - 0x660], dx
push 0x1f2
push 0
lea eax, [ebp - 0x65e]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x66c]
push ecx
call fcn.0043d6a0
add esp, 8
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
jne 0x4114c7
lea edx, [ebp - 0x66c]
push edx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
push 0x4ca88c
push 0
push 0
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x228]
call fcn.00451070
mov dword [ebp - 0x884], eax
mov ecx, dword [ebp - 0x884]
mov dword [ebp - 0x888], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x888]
call fcn.004502f0
mov byte [ebp - 0x879], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x880]
call fcn.0044f790
movzx edx, byte [ebp - 0x879]
test edx, edx
je 0x411543
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0044f790
jmp 0x4118cf
push 0
push 1
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00451070
mov byte [ebp - 4], 3
push 0
push 2
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x228]
call fcn.00451070
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x258]
call fcn.00450550
movzx eax, al
test eax, eax
je 0x4115a5
push str._Status_code_not_specified_in_ERRFILE_line_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
push 0x19
call fcn.004021b7
add esp, 8
lea ecx, [ebp - 0x258]
call fcn.00450270
mov dl, byte [eax]
mov byte [ebp - 0x259], dl
push str.outil.inf
lea ecx, [ebp - 0x254]
call fcn.004502d0
movzx eax, al
test eax, eax
je 0x411647
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.004016f4
test eax, eax
jbe 0x411603
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00401280
mov ecx, eax
call fcn.00450270
push eax
call fcn.004452b0
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jg 0x411627
push str._n_Toolpath_number_not_given_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov ecx, dword [ebp + 0x14]
push ecx
push 0x1a
call fcn.004021b7
add esp, 8
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push str._WNCZONE_outil_d.inf
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
jmp 0x41174f
push str.batch.inf
lea ecx, [ebp - 0x254]
call fcn.004502d0
movzx edx, al
test edx, edx
je 0x4116f1
mov dword [ebp - 0x670], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.004016f4
test eax, eax
jbe 0x411698
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00401280
mov ecx, eax
call fcn.00450270
push eax
call fcn.004452b0
add esp, 4
mov dword [ebp - 0x670], eax
cmp dword [ebp - 0x670], 0xffffffff
je 0x4116aa
cmp dword [ebp - 0x670], 0
jne 0x4116c6
push str._n_Batch_number_not_specified__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov eax, dword [ebp + 0x14]
push eax
push 0x1b
call fcn.004021b7
add esp, 8
mov ecx, dword [ebp - 0x670]
push ecx
push str._WNCZONE_batch_d.inf
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x670]
neg eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x41174f
push str.zone.inf
lea ecx, [ebp - 0x254]
call fcn.004502d0
movzx edx, al
test edx, edx
je 0x411727
push str._WNCZONE_zone.inf
lea eax, [ebp - 0x214]
push eax
call sub.MSVCR100.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x41174f
lea ecx, [ebp - 0x254]
call fcn.004504b0
push eax
push str._n_Unknown_error_file__s__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov edx, dword [ebp + 0x14]
push edx
push 0x1c
call fcn.004021b7
add esp, 8
push 0x200
lea eax, [ebp - 0x214]
push eax
call fcn.0043d6a0
add esp, 8
mov ecx, dword [0x4ca98c]
mov dword [ebp - 0x874], ecx
mov edx, dword [0x4ca990]
mov dword [ebp - 0x870], edx
mov eax, dword [0x4ca994]
mov dword [ebp - 0x86c], eax
mov cx, word [0x4ca998]
mov word [ebp - 0x868], cx
push 0x1f2
push 0
lea edx, [ebp - 0x866]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x200
lea eax, [ebp - 0x874]
push eax
call fcn.0043d6a0
add esp, 8
push 0x4ca99c
lea ecx, [ebp - 0x874]
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x878], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push 0x4ca9a0
mov ecx, dword [ebp - 0x878]
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push 0x4ca9a4
mov eax, dword [ebp - 0x878]
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
movsx ecx, byte [ebp - 0x259]
push ecx
push 0x4ca9a8
mov edx, dword [ebp - 0x878]
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, dword [ebp - 0x878]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
movsx ecx, byte [ebp - 0x259]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
push str.ini__d__c
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x224]
call fcn.0040173f
mov byte [ebp - 4], 5
lea edx, [ebp - 0x224]
push edx
push 0
lea eax, [ebp - 0x250]
push eax
push 0x4ca9b8
call fcn.00402c34
mov ecx, eax
call fcn.004022bb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call fcn.00401523
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
call fcn.0044f790
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.0044f790
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.0044f790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469394
mov esp, ebp
pop ebp
ret