Function at 0x4a3340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f698
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ebx, [edi + 0x538]
push esi
push ebx
call fcn.0045ef30
add esp, 8
test al, al
jne 0x4a3583
cmp ebx, esi
je 0x4a33a1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4a3396
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00403190
mov ecx, dword [edi + 0x534]
test ecx, ecx
je 0x4a33bb
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x534], 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403830
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
jb 0x4a33d7
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x4a34eb
lea eax, [ebp - 0x70]
push eax
call fcn.004477b0
add esp, 4
mov ebx, eax
mov ecx, dword [edi + 0x2b4]
mov byte [ebp - 4], 1
call fcn.0044b590
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x74], ecx
lea ecx, [ecx]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4a3410
sub edx, dword [ebp - 0x74]
mov ecx, ebx
sar edx, 1
push edx
push eax
call fcn.00441364
mov edx, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [edx]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x34], ecx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
jb 0x4a347f
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00441364
mov edx, eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x58], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x54], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b310
lea ecx, [ebp - 0x58]
call fcn.00403110
lea ecx, [ebp - 0x40]
call fcn.00403110
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00403110
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4a34f7
mov eax, dword [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x4a357b
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x4a3535
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x4a351a
mov ecx, dword [ebp - 0x28]
lea eax, [esi + 4]
mov dword [esi], vtable.Gdiplus::Image.0
push eax
push ecx
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [esi + 8], eax
jmp 0x4a3537
xor esi, esi
mov dword [edi + 0x534], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x4a357b
cmp byte [edi + 0x521], al
mov esi, dword [edi + 0x534]
sete al
lea eax, [eax*2 + 1]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipImageRotateFlip
test eax, eax
je 0x4a3571
mov dword [esi + 8], eax
push 0
lea ecx, [edi + 4]
call fcn.004770c0
lea ecx, [ebp - 0x28]
call fcn.00403110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret 4