Function at 0x4104f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
test eax, eax
jne 0x410524
xor eax, eax
jmp 0x41089f
call sub.WINDCS32.dll_sysini_GetEngSprache
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_texte_sgop.tmp
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov edx, dword [ebp + 0xc]
push edx
call sub.WINDCS32.dll_sysini_GetEngSprache
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_texte_s_s.txt
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0x498f08
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41059f
xor eax, eax
jmp 0x41089f
push 0x498ee8
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4105c4
xor eax, eax
jmp 0x41089f
mov dword [ebp - 0xc], 0
jmp 0x4105d6
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0x10]
jge 0x410662
mov eax, dword [ebp - 8]
push eax
push 0x13
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x41064c
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._s_d
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x10
jae 0x41063b
push 0x499144
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x410617
push 0x498f18
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
jmp 0x4105cd
push 0x14
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x10
jae 0x410696
push 0x499144
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x410672
push 0x498f18
lea edx, [ebp - 0x20]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
mov edx, dword [ebp - 8]
push edx
push 0x13
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x4106df
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x3e8
jge 0x410714
mov eax, dword [ebp - 8]
push eax
push 0x14
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x410701
jmp 0x410714
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
jmp 0x4106d6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0xa0]
push ecx
call fcn.0048ee7a
add esp, 8
test eax, eax
jne 0x41078c
lea edx, [ebp - 0x120]
push edx
mov eax, dword [0x4aa24c]
mov ecx, dword [eax + 0xe4]
push ecx
push str._s__n__s_
push 0x4a9c48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
call fcn.00411210
push eax
push 0x4a9c48
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x41089f
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
test eax, eax
je 0x41089a
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WINDCS32.dll_sysini_GetEngSprache
push eax
mov edx, dword [ebp + 0x18]
push edx
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_texte_s_s.txt
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 4
call sub.WINDCS32.dll_Ordinal_69
test eax, eax
je 0x41089a
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WINDCS32.dll_sysini_GetEngSprache
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x124]
push eax
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._spcu._3.3d_texte_s_s.txt
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
cmp dword [ebp - 0x124], 0
je 0x410886
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0048ee7a
add esp, 8
test eax, eax
jne 0x410886
mov ecx, dword [ebp - 0x124]
push ecx
push 4
call sub.WINDCS32.dll_Ordinal_69
push eax
mov edx, dword [0x4aa24c]
mov eax, dword [edx + 0xe4]
push eax
push str._s__n__s_
push 0x4a9c48
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
call fcn.00411210
push eax
push 0x4a9c48
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [ebp - 0x124]
add edx, 1
mov dword [ebp - 0x124], edx
jmp 0x4107da
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret