Function at 0x4dfa5f
Capabilities:
Check if file exists
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x283c
call fcn.00496e90
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x800
lea eax, [ebp - 0x1028]
push esi
xor edi, edi
push edi
push eax
call fcn.004e1330
push esi
lea eax, [ebp - 0x182c]
push edi
push eax
call fcn.004e1330
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.004dfcf8
xor eax, eax
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x182c]
push str._zip__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
add esp, 0x3c
mov word [ebp - 0x102e], ax
lea eax, [ebp - 0x182c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
push edi
push eax
call fcn.004e1330
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004eb8fb
push 0x5e6840
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.004d7d69
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004e1330
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004e1330
add esp, 0x40
lea eax, [ebp - 0x20c]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004e3f25
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x4dfce7
lea eax, [ebp - 0x20c]
push eax
call fcn.004e608a
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004eb8fb
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.004d7d69
push edi
call fcn.004ea059
mov dword [ebp - 0x283c], eax
lea eax, [ebp - 0x283c]
push eax
mov dword [ebp - 0x2838], edx
call fcn.004ebbe9
push 0x1000
mov esi, eax
lea eax, [ebp - 0x282c]
push edi
push eax
call fcn.004e1330
lea eax, [ebp - 0x1028]
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x282c]
push str.__d__02d__02d__02d:_02d:_02d_:_s
push eax
call fcn.004dfa41
add esp, 0x58
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5d98d4
push eax
cmovne edi, ebx
call fcn.004ea25b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4dfce7
test edi, edi
jne 0x4dfc8d
push esi
push 2
lea eax, [ebp - 0x2834]
mov dword [ebp - 0x2834], 0xfeff
push ebx
push eax
call fcn.004ea5c2
add esp, 0x10
lea eax, [ebp - 0x282c]
push eax
call fcn.004e608a
push esi
add eax, eax
push eax
lea eax, [ebp - 0x282c]
push ebx
push eax
call fcn.004ea5c2
push esi
push 2
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x2830], 0xd
push ebx
push eax
call fcn.004ea5c2
push esi
push 2
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x2830], 0xa
push ebx
push eax
call fcn.004ea5c2
push esi
call fcn.004ea30a
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00495c0c
mov esp, ebp
pop ebp
ret