Function at 0x47d230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4398
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x53ac84]
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 0x47d275
mov edx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x47d27f
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 0x47d2b9
test ecx, ecx
je 0x47d559
sub eax, edx
mov dword [ebp - 0x78], eax
nop dword [eax]
mov ax, word [eax + edx]
cmp ax, word [edx]
jne 0x47d2b9
mov eax, dword [ebp - 0x78]
add edx, 2
sub ecx, 1
jne 0x47d2a0
jmp 0x47d559
cmp edi, esi
je 0x47d2d0
cmp dword [esi + 0x14], 8
jb 0x47d2c5
mov esi, dword [esi]
push dword [ebp - 0x7c]
mov ecx, edi
push esi
call fcn.00407020
mov esi, dword [ebp - 0x74]
mov ecx, dword [esi + 0x534]
test ecx, ecx
je 0x47d2ed
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x534], 0
push edi
lea ecx, [ebp - 0x28]
call fcn.004071e0
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 0x47d472
push 0x53bbd0
lea ecx, [ebp - 0x70]
call fcn.004071e0
mov edi, dword [ebp - 0x74]
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x2b4]
add eax, 0x1fc
cmp dword [eax + 0x14], 8
jb 0x47d33e
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x58]
call fcn.00420880
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.004208f0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x47d393
mov ecx, eax
call fcn.004072c0
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 0x47d3cd
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d3c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d576
push edx
push ecx
call fcn.004c1d47
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 0x47d41f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d415
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d57b
push edx
push ecx
call fcn.004c1d47
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 0x47d475
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d466
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d580
push edx
push ecx
call fcn.004c1d47
add esp, 8
jmp 0x47d475
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 0x47d4c8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x47d559
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47d54f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47d585
jmp 0x47d54f
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x7c], esi
test esi, esi
je 0x47d4ff
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 0x47d501
xor esi, esi
mov dword [edi + 0x534], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x47d48b
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 0x47d540
mov dword [esi + 8], eax
push 0
lea ecx, [edi + 4]
call fcn.0045f500
jmp 0x47d48b
push edx
push ecx
call fcn.004c1d47
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.004c1fe9
mov esp, ebp
pop ebp
ret 4
call fcn.004c7ca1
call fcn.004c7ca1
call fcn.004c7ca1
call fcn.004c7ca1
int3