Function at 0x47c670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0e68
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x536364]
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 - 0x74], eax
mov esi, dword [ebp + 8]
lea edi, [eax + 0x538]
mov dword [ebp - 0x78], edi
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x47c6b5
mov edx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x47c6bf
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
mov edi, dword [esi + 0x10]
cmp ecx, edi
mov dword [ebp - 0x7c], edi
mov edi, dword [ebp - 0x78]
jne 0x47c6f9
test ecx, ecx
je 0x47c999
sub eax, edx
mov dword [ebp - 0x78], eax
nop dword [eax]
mov ax, word [eax + edx]
cmp ax, word [edx]
jne 0x47c6f9
mov eax, dword [ebp - 0x78]
add edx, 2
sub ecx, 1
jne 0x47c6e0
jmp 0x47c999
cmp edi, esi
je 0x47c710
cmp dword [esi + 0x14], 8
jb 0x47c705
mov esi, dword [esi]
push dword [ebp - 0x7c]
mov ecx, edi
push esi
call fcn.004068e0
mov esi, dword [ebp - 0x74]
mov ecx, dword [esi + 0x534]
test ecx, ecx
je 0x47c72d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x534], 0
push edi
lea ecx, [ebp - 0x28]
call fcn.00406aa0
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]
test eax, eax
jne 0x47c8b2
push 0x537300
lea ecx, [ebp - 0x70]
call fcn.00406aa0
mov edi, dword [ebp - 0x74]
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x2b4]
add eax, 0x1fc
cmp dword [eax + 0x14], 8
jb 0x47c77e
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.0041fca0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.0041fd10
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x47c7d3
mov ecx, eax
call fcn.00406b80
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 - 0x2c]
cmp edx, 8
jb 0x47c80d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c9b6
push edx
push ecx
call fcn.004a1b67
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x47c85f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c855
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c9bb
push edx
push ecx
call fcn.004a1b67
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x47c8b5
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c8a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c9c0
push edx
push ecx
call fcn.004a1b67
add esp, 8
jmp 0x47c8b5
mov edi, dword [ebp - 0x74]
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 0x47c908
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47c999
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47c98f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47c9c5
jmp 0x47c98f
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x47c93f
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 0x47c941
xor esi, esi
mov dword [edi + 0x534], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x47c8cb
cmp byte [edi + 0x521], al
mov esi, dword [edi + 0x534]
sete al
lea eax, [eax*2 + 1]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipImageRotateFlip]
test eax, eax
je 0x47c980
mov dword [esi + 8], eax
push 0
lea ecx, [edi + 4]
call fcn.0045e910
jmp 0x47c8cb
push edx
push ecx
call fcn.004a1b67
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.004a1e09
mov esp, ebp
pop ebp
ret 4
call fcn.004c43e9
call fcn.004c43e9
call fcn.004c43e9
call fcn.004c43e9
int3