Function at 0x4c8c40
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e66e8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [edi + 0x98]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
lea ecx, [edi + 0xa8]
mov ebx, eax
call fcn.004c7db0
cdq
lea ecx, [edi + 0xa8]
xor eax, edx
sub eax, edx
push eax
call fcn.004c7ee0
cdq
xor eax, edx
sub eax, edx
push eax
push dword [edi + 0x98]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [ebp - 0x70], eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [edi + 0xa8]
mov dword [ebp - 0x6c], eax
call fcn.004c7db0
cdq
lea ecx, [edi + 0xa8]
xor eax, edx
sub eax, edx
push eax
call fcn.004c7ee0
cdq
lea ecx, [ebp - 0x50]
xor eax, edx
sub eax, edx
push eax
push 0
push 0
call fcn.004c7d70
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
sub eax, edx
mov ecx, dword [ebp - 0x50]
push 0x40cc0020
push dword [edi + 0xac]
push dword [edi + 0xa8]
push dword [edi + 0x98]
push eax
mov eax, dword [ebp - 0x48]
sub eax, ecx
push eax
push edx
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x40]
push eax
call fcn.004bec40
add esp, 4
push 4
push 0x5ec7fc
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004a29a0
mov ecx, dword [0x66c340]
lea eax, [ebp - 0x28]
push eax
call fcn.004bab60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c8d76
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call fcn.0049a670
mov edx, eax
add esp, 0xc
cmp word [edx], 0
jne 0x4c8d9a
xor ecx, ecx
jmp 0x4c8daf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c8da0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0049e9a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [0x65d05c]
cmovae eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x70]
push eax
push esi
call fcn.004c0320
add esp, 0xc
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x6c]
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, eax
test esi, esi
je 0x4c8e4e
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push 0xffffffffffffffff
cmovae ecx, dword [ebp - 0x40]
push 0
push ecx
call fcn.0049a670
add esp, 0xc
lea ecx, [ebp - 0x68]
push eax
call fcn.0049abb0
mov edx, dword [esi]
lea eax, [ebp - 0x68]
push eax
lea eax, [edi + 0xc8]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call dword [edx]
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x4c8e4e
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.0049ef70
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c8e63
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0049ef70
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x4c8e8c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0049ef20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret