Function at 0x50cd7b
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51361e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
push esi
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov ecx, 0x5b5730
call fcn.0050f5b0
lea eax, [ebp - 0x434]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea ecx, [ebp - 0x43c]
push ecx
call fcn.00401d93
add esp, 4
mov dword [ebp - 4], 0
push 0x5b38b0
lea ecx, [ebp - 0x43c]
call fcn.0050f0b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x50ce20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call sub.MFC42.DLL_CString::CString
jmp 0x50d2ec
push 0
push 0x3c8
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
mov esi, eax
shl esi, 0x18
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
shl eax, 0x10
add esi, eax
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
shl eax, 8
add esi, eax
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
add esi, eax
mov dword [ebp - 0x324], esi
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
mov esi, eax
shl esi, 0x18
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
shl eax, 0x10
add esi, eax
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
shl eax, 8
add esi, eax
mov ecx, dword [ebp - 0x438]
push ecx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
add esi, eax
mov dword [ebp - 0x320], esi
cmp dword [ebp - 0x324], 0
je 0x50cef7
cmp dword [ebp - 0x320], 0
jne 0x50cf1e
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call sub.MFC42.DLL_CString::CString
jmp 0x50d2ec
lea eax, [ebp - 0x434]
push eax
push 0x5b38b4
lea ecx, [ebp - 0x31c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x5b38c0
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x50cf7f
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call sub.MFC42.DLL_CString::CString
jmp 0x50d2ec
push 0
mov ecx, dword [ebp - 0x324]
push ecx
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [0x5b84b8], 0
jmp 0x50cfb1
mov eax, dword [0x5b84b8]
add eax, 1
mov dword [0x5b84b8], eax
mov ecx, dword [0x5b84b8]
cmp ecx, dword [ebp - 0x320]
jge 0x50cff6
push 5
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
push eax
call fcn.00402078
add esp, 8
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
push ecx
call dword [sym.imp.MSVCRT.dll_fputc]
add esp, 8
jmp 0x50cfa4
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov byte [ebp - 0x32c], 0x53
mov byte [ebp - 0x32b], 0x65
mov byte [ebp - 0x32a], 0x72
mov byte [ebp - 0x329], 0x67
mov byte [ebp - 0x328], 0x69
mov byte [ebp - 0x327], 0x6f
mov byte [ebp - 0x326], 0x47
mov byte [ebp - 0x325], 0x48
lea ecx, [ebp - 0x32c]
push ecx
lea edx, [ebp - 0x31c]
push edx
call fcn.004136d0
add esp, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x434]
push eax
push 0x5b38c4
lea ecx, [ebp - 0x31c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x31c]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00413877
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004139a7
add esp, 4
and eax, 0xff
test eax, eax
je 0x50d0be
mov edx, dword [ebp - 0x10]
push edx
call fcn.00413912
add esp, 4
mov dword [ebp - 0x444], eax
jmp 0x50d0d0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040ba2f
add esp, 4
mov dword [ebp - 0x444], eax
lea ecx, [ebp - 0x434]
push ecx
push 0x5b38cc
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x5b38d4
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
jne 0x50d127
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call sub.MFC42.DLL_CString::CString
jmp 0x50d2ec
mov ecx, dword [ebp - 0x438]
push ecx
push 0x200
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax + 0xc]
and ecx, 0x10
test ecx, ecx
je 0x50d158
jmp 0x50d222
movsx edx, byte [ebp - 0x1f8]
cmp edx, 0x2c
je 0x50d169
jmp 0x50d215
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x330], eax
mov dword [0x5b84b8], 0
jmp 0x50d199
mov ecx, dword [0x5b84b8]
add ecx, 1
mov dword [0x5b84b8], ecx
mov edx, dword [0x5b84b8]
cmp edx, dword [ebp - 0x330]
jge 0x50d1e2
mov eax, dword [0x5b84b8]
movsx ecx, byte [ebp + eax - 0x218]
cmp ecx, 0x2c
jne 0x50d1bb
jmp 0x50d1e2
push 5
mov edx, dword [0x5b84b8]
mov al, byte [ebp + edx - 0x218]
push eax
call fcn.00402078
add esp, 8
mov ecx, dword [0x5b84b8]
mov byte [ebp + ecx - 0x218], al
jmp 0x50d18a
mov edx, dword [ebp - 0x330]
mov byte [ebp + edx - 0x219], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x440], esp
lea eax, [ebp - 0x218]
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x448], eax
mov ecx, 0x5b5730
call fcn.004049bb
mov ecx, 1
test ecx, ecx
jne 0x50d127
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x404d33
mov ecx, 0x5b5730
call fcn.00404d49
mov dword [0x5b84b8], 0
jmp 0x50d25a
mov eax, dword [0x5b84b8]
add eax, 1
mov dword [0x5b84b8], eax
cmp dword [0x5b84b8], 0x100
jge 0x50d282
mov ecx, dword [0x5b84b8]
mov edx, dword [0x5b84b8]
mov eax, dword [edx*4 + 0x5b5744]
mov dword [ecx*4 + 0x5b5330], eax
jmp 0x50d24d
lea ecx, [ebp - 0x434]
push ecx
push str._sDatos
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
lea ecx, [ebp - 0x434]
push ecx
push str._sDatosZip
lea edx, [ebp - 0x31c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret