Function at 0x42a360
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4813a0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49eb88]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x5c]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
test eax, eax
je 0x42a3c3
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x42a3be
lea eax, [edi + 4]
push eax
push ebp
mov dword [edi], vtable.Gdiplus::Image.0
mov dword [eax], ebx
call sub.gdiplus.dll_GdipLoadImageFromFile
mov dword [edi + 8], eax
jmp 0x42a3c0
xor edi, edi
mov dword [esi + 0xc], edi
mov edi, dword [esi + 0xc]
cmp edi, ebx
jne 0x42a3d1
xor eax, eax
jmp 0x42a84e
mov ecx, dword [edi + 4]
lea eax, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0x64], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x42a3ea
mov dword [edi + 8], eax
mov edx, dword [esp + 0x5c]
mov edi, dword [esi + 0xc]
lea eax, [esp + 0x5c]
mov dword [esi + 0x18], edx
mov ecx, dword [edi + 4]
push eax
push ecx
mov dword [esp + 0x64], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x42a40d
mov dword [edi + 8], eax
mov edx, dword [esp + 0x5c]
push 4
mov edi, 0xf
push str.cbtn
lea ecx, [esp + 0x38]
mov dword [esi + 0x1c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], ebx
call fcn.00411bf0
mov ecx, dword [eax]
or ebp, 0xffffffff
cmp dword [esp + 0x48], 0x10
mov dword [esi + 0x20], ecx
mov dword [esp + 0x54], ebp
jb 0x42a468
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.cbtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 1
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 8]
mov dword [esi + 0x28], ecx
mov dword [esp + 0x54], ebp
jb 0x42a4b9
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.cbtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 2
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 4]
mov dword [esi + 0x24], ecx
mov dword [esp + 0x54], ebp
jb 0x42a50a
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.cbtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 3
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esp + 0x54], ebp
jb 0x42a55b
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.ibtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 4
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax]
mov dword [esi + 0x30], ecx
mov dword [esp + 0x54], ebp
jb 0x42a5ab
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.ibtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 5
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 8]
mov dword [esi + 0x38], ecx
mov dword [esp + 0x54], ebp
jb 0x42a5fc
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.ibtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 6
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 4]
mov dword [esi + 0x34], ecx
mov dword [esp + 0x54], ebp
jb 0x42a64d
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.ibtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 7
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x3c], ecx
mov dword [esp + 0x54], ebp
jb 0x42a69e
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.nbtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 8
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax]
mov dword [esi + 0x40], ecx
mov dword [esp + 0x54], ebp
jb 0x42a6ee
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.nbtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 9
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 8]
mov dword [esi + 0x48], ecx
mov dword [esp + 0x54], ebp
jb 0x42a73f
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.nbtn
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.0040f300
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 0xa
call fcn.00411bf0
cmp dword [esp + 0x48], 0x10
mov ecx, dword [eax + 4]
mov dword [esi + 0x44], ecx
mov dword [esp + 0x54], ebp
jb 0x42a790
mov edx, dword [esp + 0x34]
push edx
call fcn.0044f90c
add esp, 4
push 4
push str.nbtn
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0040f300
lea eax, [esp + 0x14]
push eax
mov ecx, 0x4a0670
mov dword [esp + 0x58], 0xb
call fcn.00411bf0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x4c], ecx
mov dword [esp + 0x54], ebp
jb 0x42a7e1
mov edx, dword [esp + 0x18]
push edx
call fcn.0044f90c
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004273c0
mov edi, eax
mov ecx, dword [edi + 0x248]
sub ecx, dword [edi + 0x244]
add edi, 0x238
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
ja 0x42a823
call fcn.00450a96
mov edi, dword [edi + 0xc]
add edi, 0x70
cmp dword [edi + 0x18], 8
jb 0x42a834
mov edi, dword [edi + 4]
jmp 0x42a837
add edi, 4
push edi
call fcn.0045224b
add esp, 4
push eax
push ebx
mov ecx, esi
call fcn.0042a180
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4