Function at 0x4d5df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ffb3
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6a8c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x8c], eax
mov esi, dword [ebp + 8]
lea edi, [eax + 0x368]
mov dword [ebp - 0x90], edi
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4d5e3e
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4d5e48
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
mov edi, dword [esi + 0x10]
cmp edx, edi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp - 0x90]
jne 0x4d5e8c
test edx, edx
je 0x4d6191
sub eax, ecx
mov dword [ebp - 0x90], eax
nop
mov ax, word [eax + ecx]
cmp ax, word [ecx]
jne 0x4d5e8c
mov eax, dword [ebp - 0x90]
add ecx, 2
sub edx, 1
jne 0x4d5e70
jmp 0x4d6191
cmp edi, esi
je 0x4d5ea6
cmp dword [esi + 0x14], 8
jb 0x4d5e98
mov esi, dword [esi]
push dword [ebp - 0x94]
mov ecx, edi
push esi
call fcn.0044e430
mov esi, dword [ebp - 0x8c]
mov ecx, dword [esi + 0x364]
test ecx, ecx
je 0x4d5ec6
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x364], 0
push edi
lea ecx, [ebp - 0x28]
call fcn.004565b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x4d60ac
mov eax, dword [edi + 0x20]
lea ecx, [ebp - 0x88]
add eax, 0x11c
push eax
call fcn.004565b0
push 0x6a9a98
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004565b0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
call fcn.004a3a70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004a3a10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4d5f7a
mov ecx, eax
call fcn.0044e3d0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4d5fb4
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5faa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d61ae
push edx
push ecx
call fcn.005d588d
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x4d6006
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d5ffc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d61b3
push edx
push ecx
call fcn.005d588d
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x4d6058
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d604e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d61b8
push edx
push ecx
call fcn.005d588d
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x4d60ac
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d60a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d61bd
push edx
push ecx
call fcn.005d588d
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d60ff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4d6191
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4d6187
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d61c2
jmp 0x4d6187
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x94], esi
test esi, esi
je 0x4d613a
cmp dword [ebp - 0x14], 8
lea eax, [esi + 4]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [esi + 8], eax
jmp 0x4d613c
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x4d60c2
cmp byte [edi + 0x351], al
mov esi, dword [edi + 0x364]
sete al
lea eax, [eax*2 + 1]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipImageRotateFlip]
test eax, eax
je 0x4d617b
mov dword [esi + 8], eax
mov ecx, edi
call fcn.004ac300
jmp 0x4d60c2
push edx
push ecx
call fcn.005d588d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d584c
mov esp, ebp
pop ebp
ret 4
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
int3