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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x283c
call fcn.00427790
mov eax, dword [0x5793bc]
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.004f1300
push esi
lea eax, [ebp - 0x182c]
push edi
push eax
call fcn.004f1300
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.004dd721
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.004f1300
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.005099e7
push 0x525548
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.004d8965
push esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004f1300
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004f1300
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.004f145a
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 0x4dd710
lea eax, [ebp - 0x20c]
push eax
call fcn.00508479
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.005099e7
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.004d8965
push edi
call fcn.004f89a2
mov dword [ebp - 0x283c], eax
lea eax, [ebp - 0x283c]
push eax
mov dword [ebp - 0x2838], edx
call fcn.00507f16
push 0x1000
mov esi, eax
lea eax, [ebp - 0x282c]
push edi
push eax
call fcn.004f1300
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.004dd46a
add esp, 0x58
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x5637e4
push eax
cmovne edi, ebx
call fcn.004fb4fa
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4dd710
test edi, edi
jne 0x4dd6b6
push esi
push 2
lea eax, [ebp - 0x2834]
mov dword [ebp - 0x2834], 0xfeff
push ebx
push eax
call fcn.004fc7fd
add esp, 0x10
lea eax, [ebp - 0x282c]
push eax
call fcn.00508479
push esi
add eax, eax
push eax
lea eax, [ebp - 0x282c]
push ebx
push eax
call fcn.004fc7fd
push esi
push 2
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x2830], 0xd
push ebx
push eax
call fcn.004fc7fd
push esi
push 2
lea eax, [ebp - 0x2830]
mov dword [ebp - 0x2830], 0xa
push ebx
push eax
call fcn.004fc7fd
push esi
call fcn.004fb2f8
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042774d
mov esp, ebp
pop ebp
ret