Function at 0x4dd790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ca7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xec
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea eax, [ebp + 8]
mov ecx, dword [esi + 0x26c]
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
add ecx, 0x490
push ebx
mov dword [ebp - 4], edi
call fcn.0049eb20
cmp eax, edi
jne 0x4dd878
cmp ebx, edi
jl 0x4dd878
mov ecx, dword [esi + 0x26c]
cmp ebx, dword [ecx + 0xb0]
jge 0x4dd878
mov eax, dword [0x639ad4]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
call fcn.00476c60
lea ecx, [ebp - 0x60]
call fcn.00476c60
mov eax, dword [0x639ad4]
mov dword [ebp - 0xc8], 0x59c97c
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov ecx, dword [esi + 0x26c]
lea edx, [ebp - 0xc8]
push edi
push edx
push ebx
add ecx, 8
mov byte [ebp - 4], 1
call fcn.0053fa00
test al, al
jne 0x4dd88b
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0
call fcn.0044b000
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x6c]
cmp eax, edi
jne 0x4dd895
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4dd869
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x6c]
cmp eax, edi
jne 0x4dd8b2
lea eax, [ebp - 0x68]
mov ecx, dword [0x63e604]
lea edx, [esi + 0x2a4]
neg ecx
sbb ecx, ecx
and ecx, 8
add ecx, 0x18
push ecx
push edx
push eax
mov eax, dword [esi + 0x520]
push eax
lea ecx, [esi + 0x5c]
call fcn.004df930
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4dd9b8
push eax
call fcn.0056d23b
cmp eax, edi
jne 0x4dd8f3
xor eax, eax
jmp 0x4dd8f6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x2a0]
push edi
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov ecx, dword [esi + 0x26c]
push ebx
add ecx, 0x490
mov edi, eax
call fcn.004de010
mov edx, dword [ebp + 8]
mov dword [eax], edi
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [esi + 0x5f4], 4
jne 0x4dd9b8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jl 0x4dd9b8
mov eax, dword [esi + 0x2b8]
test eax, eax
jl 0x4dd95a
xor eax, eax
cmp eax, dword [esi + 0x2c8]
jge 0x4dd95a
mov edx, dword [esi + 0x2c4]
cmp dword [edx + eax*4], ebx
jne 0x4dd9c3
mov ecx, eax
lea eax, [ebp - 0xf8]
push 1
push eax
push ecx
lea ecx, [esi + 0x504]
call fcn.00564169
mov edx, dword [esi + 0x520]
lea ecx, [ebp - 0xd8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0xf8]
lea ecx, [ebp - 0xd8]
push eax
lea edx, [ebp - 0xe8]
push ecx
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4dd9b8
mov ecx, dword [esi + 0x520]
lea eax, [ebp - 0xe8]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4dd869
inc eax
jmp 0x4dd945