Function at 0x4108b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
mov dword [ebp - 0x1d8], 0
mov dword [ebp - 0x1dc], 0
cmp dword [ebp + 0xc], 0x3ff
jle 0x4108e5
mov dword [ebp - 0x1e0], 0x3ff
jmp 0x4108ee
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 1
jge 0x410903
mov dword [ebp - 0x1e4], 1
jmp 0x41092d
cmp dword [ebp + 0xc], 0x3ff
jle 0x410918
mov dword [ebp - 0x1e8], 0x3ff
jmp 0x410921
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1e8], ecx
mov edx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1e4], edx
mov eax, dword [ebp - 0x1e4]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_rezeptepar.ini
push 0x4a9c48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x498f08
push 0x4a9c48
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41097a
xor eax, eax
jmp 0x410e08
mov edx, dword [ebp + 0x14]
push edx
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_rezeptepar.tmp
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x498ee8
lea ecx, [ebp - 0x8c]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4109cf
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x410e08
mov dword [ebp - 0xc], 0
jmp 0x4109e1
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0xc]
jge 0x410a45
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
and eax, 0x10
test eax, eax
jne 0x410a13
mov ecx, dword [ebp - 4]
push ecx
push 0x96
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x410a1f
mov dword [ebp - 0x1d8], 1
jmp 0x410a45
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
test eax, eax
jge 0x410a43
mov dword [ebp - 0x1d8], 1
jmp 0x410a45
jmp 0x4109d8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
and eax, 0x10
test eax, eax
jne 0x410a6f
mov ecx, dword [ebp - 4]
push ecx
push 0x96
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x410a79
mov dword [ebp - 0x1d8], 1
cmp dword [ebp - 0x1d8], 0
jne 0x410a95
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
test eax, eax
jne 0x410ac6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
xor eax, eax
jmp 0x410e08
push 0x499194
lea ecx, [ebp - 0x124]
push ecx
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
je 0x410c8a
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x499144
lea ecx, [ebp - 0x1bc]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499194
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
je 0x410b4d
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499144
lea ecx, [ebp - 0x1bc]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499194
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
je 0x410b96
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499144
lea ecx, [ebp - 0x1bc]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499194
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
je 0x410bdf
mov edx, dword [ebp - 0x1d4]
push edx
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499144
lea ecx, [ebp - 0x1bc]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499194
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
je 0x410c41
mov edx, dword [ebp + 0x10]
push edx
push 0x499190
lea eax, [ebp - 0x1d0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x1d0]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x499144
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x498f18
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
mov dword [ebp - 0x1d4], eax
cmp dword [ebp - 0x1d4], 0
je 0x410c8a
mov ecx, dword [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x498f18
lea eax, [ebp - 0x1bc]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x1bc]
push edx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
and ecx, 0x10
test ecx, ecx
jne 0x410cf4
mov edx, dword [ebp - 4]
push edx
push 0x96
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x410cde
jmp 0x410cf4
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
jmp 0x410cb2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x4a9c48
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
push 0x4a9c48
lea edx, [ebp - 0x8c]
push edx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
test eax, eax
je 0x410e03
mov eax, dword [ebp - 0x1dc]
push eax
push 4
call sub.WINDCS32.dll_Ordinal_69
test eax, eax
je 0x410e03
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1dc]
push edx
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_recipeepar.ini
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp - 0x1dc], 0
je 0x410def
lea ecx, [ebp - 0x8c]
push ecx
push 0x4a9c48
call fcn.0048ee7a
add esp, 8
test eax, eax
jne 0x410def
mov edx, dword [ebp - 0x1dc]
push edx
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
mov eax, dword [0x4aa24c]
mov ecx, dword [eax + 0xe4]
push ecx
push str._s__n__s_
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
call fcn.00411210
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.004019d0
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x1dc]
add edx, 1
mov dword [ebp - 0x1dc], edx
jmp 0x410d42
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret