Function at 0x486de0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586865
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x5deba8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], ecx
mov eax, dword [0x59587c]
mov dword [ebp - 0x21c], eax
push 0x204
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.005533a0
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045b550
add esp, 0xc
movzx edx, al
test edx, edx
je 0x486eac
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486ea7
lea ecx, [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x298]
mov ecx, dword [edx + 0x6f0]
call fcn.00488290
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.00434810
add esp, 8
mov dword [ebp - 0x220], eax
jmp 0x4871a1
cmp dword [ebp - 0x224], 1
jle 0x48718d
push 0x2010
push 0x100
push 0x100
push 1
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [ebp - 0x244], eax
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
cmp dword [ebp - 0x230], 0
jne 0x486f00
xor eax, eax
jmp 0x4871db
mov dword [ebp - 0x22c], 0
push 0x100
push 0x100
call fcn.0045b120
add esp, 8
mov dword [ebp - 0x248], eax
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 3
push 0
push 0
push 0x100
push 0x100
mov eax, dword [ebp - 0x244]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0
mov edx, dword [ebp - 0x248]
push edx
call fcn.00416710
add esp, 8
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov dword [ebp - 0x24c], 0x100
mov dword [ebp - 0x250], 0x100
mov ecx, dword [ebp - 0x22c]
call fcn.004275c0
cmp eax, 0x26200a
je 0x487183
mov ecx, dword [ebp - 0x22c]
call fcn.00427590
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.00427560
push eax
push 0
push 0
lea ecx, [ebp - 0x260]
call fcn.00427290
push 0x26200a
call fcn.004272d0
add esp, 4
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x264]
imul edx, dword [ebp - 0x258]
add edx, 0x1f
and edx, 0xffffffe0
shr edx, 3
mov dword [ebp - 0x278], edx
mov eax, dword [ebp - 0x254]
imul eax, dword [ebp - 0x278]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00553501
add esp, 4
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x270], eax
lea ecx, [ebp - 0x280]
push ecx
mov ecx, dword [ebp - 0x22c]
call fcn.004275c0
push eax
push 7
lea edx, [ebp - 0x260]
push edx
mov ecx, dword [ebp - 0x22c]
call fcn.00427740
push 0x10
call fcn.004164d0
add esp, 4
mov dword [ebp - 0x28c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28c], 0
je 0x4870f7
mov eax, dword [ebp - 0x270]
push eax
push 0x26200a
mov ecx, dword [ebp - 0x278]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
mov eax, dword [ebp - 0x280]
push eax
mov ecx, dword [ebp - 0x28c]
call fcn.00427620
mov dword [ebp - 0x29c], eax
jmp 0x487101
mov dword [ebp - 0x29c], 0
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x268], edx
lea eax, [ebp - 0x280]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.00427780
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x290], edx
cmp dword [ebp - 0x290], 0
je 0x48716f
push 1
mov eax, dword [ebp - 0x290]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x290]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x2a0], eax
jmp 0x487179
mov dword [ebp - 0x2a0], 0
mov eax, dword [ebp - 0x268]
jmp 0x4871db
mov eax, dword [ebp - 0x22c]
jmp 0x4871db
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00434810
add esp, 8
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x4871d5
mov edx, dword [ebp - 0x220]
push edx
mov ecx, dword [ebp - 0x298]
call fcn.00487200
movzx eax, al
test eax, eax
je 0x4871d5
mov ecx, dword [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x298]
call fcn.004872a0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055338c
mov esp, ebp
pop ebp
ret 4