Function at 0x1006497a
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x100c3507
call fcn.100a35ac
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
xor esi, esi
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
inc esi
mov byte [ebp - 4], 1
call fcn.10003561
push ebx
push str.http:__
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.10003080
test eax, eax
jne 0x10064b64
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.10003561
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.100640e7
push dword [ebp - 0x1c]
mov byte [ebp - 4], 3
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10064a2d
push esi
push 0x18
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], esp
mov ecx, esp
push eax
call fcn.10003561
call fcn.10061cb7
add esp, 0xc
cmp al, bl
jne 0x10064a2d
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10004a20
mov ecx, dword [ebp - 0x1c]
jmp 0x10064c27
add edi, 0x1228
cmp dword [edi], ebx
jne 0x10064aaa
mov esi, dword [ebp - 0x24]
push 2
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.DownloadManager
mov byte [ebp - 4], 4
add esi, 0xb8
call fcn.10005f07
lea ecx, [ebp - 0x38]
call fcn.1005b1cd
push eax
push esi
mov byte [ebp - 4], 5
call fcn.10059d17
mov ecx, dword [ebp - 0x34]
add esp, 0xc
add ecx, 0xfffffff0
mov esi, eax
mov byte [ebp - 4], 4
call fcn.10001d29
cmp esi, ebx
je 0x10064a90
mov eax, dword [esi]
push edi
push str.GetDownloadManager
mov ecx, esi
call dword [eax + 0x30]
jmp 0x10064a92
mov dword [edi], ebx
mov dword [ebp - 4], 3
jmp 0x10064aaa
push ebx
push str..png
lea ecx, [ebp - 0x18]
call fcn.10003080
test eax, eax
setg al
movzx eax, al
push eax
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp + 0x10], esp
mov ecx, esp
push eax
call fcn.10003561
mov esi, dword [ebp - 0x24]
push dword [esi + 0x1228]
call fcn.1002284f
add esp, 0xc
push ebx
push ecx
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp + 0x10], esp
mov ecx, esp
push eax
lea edi, [esi + 0xb8]
call fcn.10003561
lea eax, [ebp + 0x10]
push edi
push eax
call fcn.1000dad3
add esp, 0x10
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.10004a20
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10001d29
mov ecx, dword [esi + 0x1228]
mov eax, dword [ecx]
push ebx
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [eax + 8]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10004a20
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [esi], ebx
call fcn.10001d29
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10001d29
jmp 0x10064de8
lea eax, [ebp - 0x2c]
push eax
call fcn.1003ec4b
pop ecx
mov eax, dword [eax]
push ebx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
mov dword [ebp - 0x1c], esi
call fcn.10003080
cmp eax, 0xffffffff
jne 0x10064bb6
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.100404f4
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 3
call fcn.10003080
cmp eax, 0xffffffff
jne 0x10064bb6
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x11], 1
cmp dword [eax - 0xc], ebx
jne 0x10064bb9
mov byte [ebp - 0x11], bl
test byte [ebp - 0x1c], 2
je 0x10064bce
mov ecx, dword [ebp - 0x28]
and dword [ebp - 0x1c], 0xfffffffd
add ecx, 0xfffffff0
call fcn.10001d29
test byte [ebp - 0x1c], 1
mov dword [ebp - 4], 2
je 0x10064be6
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.10001d29
cmp byte [ebp - 0x11], bl
je 0x10064c33
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.100404f4
pop ecx
pop ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 9
call fcn.10005363
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.10004a20
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10001d29
push dword [ebp - 0x18]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x10064dd5
cmp byte [ebp + 0x10], bl
jne 0x10064d3b
push ebx
lea ecx, [ebp - 0x18]
call fcn.1000357f
mov esi, 0x2030
push esi
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
mov dword [ecx], eax
call fcn.10059be6
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0xb
cmp eax, ebx
je 0x10064dd5
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1005a227
mov edi, dword [ebp + 0x18]
cmp edi, 0xffffffff
je 0x10064d09
cmp dword [ebp - 0x34], edi
jle 0x10064d09
fild dword [ebp - 0x38]
fidiv dword [ebp - 0x34]
fimul dword [ebp + 0x18]
call fcn.100a5a20
push 1
push 2
push 0x20
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.1005aa44
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp + 0x10], ebx
call fcn.1000357f
push esi
push ebx
push 0xff000000
push ebx
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x18], esp
call fcn.10027e59
push ebx
push ebx
push dword [ebp + 0x10]
call fcn.1005a8ac
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
call fcn.1005a802
lea ecx, [ebp + 0x10]
call fcn.100033e3
cmp esi, ebx
je 0x10064d2d
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
jmp 0x10064d2d
push ebx
lea ecx, [ebp - 0x18]
call fcn.1000357f
push esi
push ebx
push 0xff000000
push ebx
push dword [ebp - 0x38]
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x10], esp
call fcn.10027e59
push dword [ebp - 0x28]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x10064dd5
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x10064dd5
push ebx
lea ecx, [ebp - 0x18]
call fcn.1000357f
push ebx
push ebx
push 0x10
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
mov dword [ecx], eax
call fcn.10059c00
add esp, 0x10
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x10064dd5
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.1002c5f6
mov edi, dword [eax]
mov esi, dword [eax + 4]
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x24]
push dword [eax + 0x1e8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.100032f3
cmp esi, dword [ebp - 0x34]
jl 0x10064da8
mov esi, dword [ebp - 0x34]
cmp edi, dword [ebp - 0x38]
jl 0x10064db0
mov edi, dword [ebp - 0x38]
push 1
push ebx
push 0x19
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.1005aa44
push dword [ebp + 0x10]
push 0xffffffffffffffff
push dword [ebp - 0x20]
call fcn.1005a802
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DestroyIcon]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10001d29
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14