Function at 0x459b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ccbb3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x50b0cc]
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 ebx, dword [ebp + 8]
lea esi, [edi + 0x368]
cmp dword [ebx + 0x14], 8
jb 0x459b43
mov eax, dword [ebx]
jmp 0x459b45
mov eax, ebx
cmp dword [esi + 0x14], 8
jb 0x459b4f
mov ecx, dword [esi]
jmp 0x459b51
mov ecx, esi
push dword [ebx + 0x10]
mov edx, dword [esi + 0x10]
push eax
call fcn.0040ac20
add esp, 8
test eax, eax
je 0x459d5e
cmp esi, ebx
je 0x459b78
push 0xffffffffffffffff
push 0
push ebx
mov ecx, esi
call fcn.00403b40
mov ecx, dword [edi + 0x364]
test ecx, ecx
je 0x459b92
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x364], 0
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403b40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
jne 0x459cb8
mov ecx, dword [edi + 0x20]
lea eax, [ebp - 0x88]
push eax
call fcn.0041df90
mov esi, eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0042eee0
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.004296a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00429650
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.00409260
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x459c34
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x459c5d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x459c86
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404050
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x459cb8
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00404050
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x459d49
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x459d05
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 0x459d07
xor esi, esi
mov dword [edi + 0x364], esi
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
jne 0x459d49
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 0x459d42
mov dword [esi + 8], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x459d5e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404050
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.00488d6f
mov esp, ebp
pop ebp
ret 4