Function at 0x471a00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddcbd
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x520404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [edi + 0x510]
push esi
push eax
call fcn.0044f9e0
add esp, 8
test al, al
je 0x471c58
lea eax, [edi + 0x510]
cmp eax, esi
je 0x471a66
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x471a5b
mov ecx, dword [esi]
push dword [esi + 0x10]
push ecx
mov ecx, eax
call fcn.00408960
mov ecx, dword [edi + 0x50c]
test ecx, ecx
je 0x471a80
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x50c], 0
lea eax, [edi + 0x510]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408500
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 0x471c08
push 0x5213f0
lea ecx, [ebp - 0x70]
call fcn.00408500
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x28c]
add eax, 0x1fc
cmp dword [eax + 0x14], 8
jb 0x471ad4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00420760
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.004207d0
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x471b2b
mov ecx, eax
call fcn.00408b30
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 0x471b65
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471b5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471d30
push edx
push ecx
call fcn.004a7d37
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 0x471bb7
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471bad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471d30
push edx
push ecx
call fcn.004a7d37
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 0x471c08
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471bfe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471d30
push edx
push ecx
call fcn.004a7d37
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 0x471c75
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x471c58
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471c4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471d2b
push edx
push ecx
call fcn.004a7d37
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.004a7f4e
mov esp, ebp
pop ebp
ret 4
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x471cac
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 0x471cae
xor esi, esi
mov dword [edi + 0x50c], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x471cf3
cmp byte [edi + 0x4f9], al
mov esi, dword [edi + 0x50c]
sete al
lea eax, [eax*2 + 1]
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipImageRotateFlip]
test eax, eax
je 0x471ce9
mov dword [esi + 8], eax
push 0
lea ecx, [edi + 4]
call fcn.0043a870
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x471c58
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x471c4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x471c4e
call fcn.004af45f
call fcn.004af45f
int3