Function at 0x510470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b00a1
mov eax, dword fs:[0]
push eax
mov eax, 0x2f3c
call fcn.00671aa0
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2eb8], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00415b40
test eax, eax
jne 0x5104f8
mov eax, dword [ebp - 0x2eb8]
mov dword [eax + 0x3694], 4
mov dword [ebp - 0x2eec], 0x80070057
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2eec]
jmp 0x510d80
lea ecx, [ebp - 0x2eb4]
call fcn.0050d6e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2eb4]
push ecx
call fcn.004f93a0
add esp, 4
lea ecx, [ebp + 0x10]
call fcn.0041af60
push eax
lea edx, [ebp - 0x2eb4]
push edx
call fcn.00673010
add esp, 8
mov dword [ebp - 0x2b8], 2
mov dword [ebp - 0x168], 0
lea ecx, [ebp + 8]
call fcn.00415b40
mov dword [ebp - 0x2ec8], eax
lea eax, [ebp - 0x168]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2f38], esp
push str.download.version
call fcn.00419d50
mov dword [ebp - 0x2f3c], eax
mov ecx, dword [ebp - 0x2ec8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2ec8]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2ee8], eax
cmp dword [ebp - 0x2ee8], 0
jne 0x5105f3
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x2d64], 3
mov edx, dword [ebp - 0x2eb8]
mov dword [edx + 0x3694], 5
mov dword [ebp - 0x2ef0], 0x80004004
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2ef0]
jmp 0x510d80
cmp dword [ebp - 0x168], 1
jle 0x51065b
mov eax, dword [ebp - 0x2eb8]
mov dword [eax + 0x2d64], 3
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 2
mov dword [ebp - 0x2ef8], 0x80004004
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2ef8]
jmp 0x510d80
lea ecx, [ebp + 8]
call fcn.00415b40
mov dword [ebp - 0x2ed8], eax
lea edx, [ebp - 0x2db0]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2f34], esp
push str.download.size
call fcn.00419d50
mov dword [ebp - 0x2f20], eax
mov eax, dword [ebp - 0x2ed8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2ed8]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2f00], eax
cmp dword [ebp - 0x2f00], 0
jne 0x5106fc
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 6
mov dword [ebp - 0x2f08], 0x80004004
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2f08]
jmp 0x510d80
mov dword [ebp - 0x16c], 0
lea ecx, [ebp + 8]
call fcn.00415b40
mov dword [ebp - 0x2ecc], eax
lea edx, [ebp - 0x16c]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2f28], esp
push str.download.url.size
call fcn.00419d50
mov dword [ebp - 0x2f30], eax
mov eax, dword [ebp - 0x2ecc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2ecc]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2f10], eax
cmp dword [ebp - 0x2f10], 0
jne 0x5107a7
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 7
mov dword [ebp - 0x2f18], 0x80004004
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2f18]
jmp 0x510d80
mov dword [ebp - 0x2ebc], 0
jmp 0x5107c2
mov edx, dword [ebp - 0x2ebc]
add edx, 1
mov dword [ebp - 0x2ebc], edx
mov eax, dword [ebp - 0x2ebc]
cmp eax, dword [ebp - 0x16c]
jge 0x510923
cmp dword [ebp - 0x2ebc], 0xa
jge 0x510923
mov byte [ebp - 0x160], 0
push 0x7f
push 0
lea ecx, [ebp - 0x15f]
push ecx
call fcn.0066eb10
add esp, 0xc
mov edx, dword [ebp - 0x2ebc]
push edx
push str.download.url.item__d.value
lea eax, [ebp - 0x160]
push eax
call fcn.0066d97a
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00419670
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00415b40
mov dword [ebp - 0x2ed0], eax
lea ecx, [ebp - 0x19c]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2f1c], esp
lea edx, [ebp - 0x160]
push edx
call fcn.00419d50
mov dword [ebp - 0x2f40], eax
mov eax, dword [ebp - 0x2ed0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2ed0]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x2ee4], eax
cmp dword [ebp - 0x2ee4], 0
jne 0x5108d7
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 8
mov dword [ebp - 0x2ee0], 0x80004004
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.00419eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2ee0]
jmp 0x510d80
lea ecx, [ebp - 0x19c]
call fcn.0041af60
push eax
imul edx, dword [ebp - 0x2ebc], 0x448
lea eax, [ebp + edx - 0x2dac]
push eax
call fcn.00673010
add esp, 8
imul ecx, dword [ebp - 0x2ebc], 0x448
mov byte [ebp + ecx - 0x299c], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x19c]
call fcn.00419eb0
jmp 0x5107b3
mov dword [ebp - 0x164], 0
lea ecx, [ebp + 8]
call fcn.00415b40
mov dword [ebp - 0x2ec4], eax
lea edx, [ebp - 0x164]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2f48], esp
push str.download.hash.size
call fcn.00419d50
mov dword [ebp - 0x2f24], eax
mov eax, dword [ebp - 0x2ec4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2ec4]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2f0c], eax
cmp dword [ebp - 0x2f0c], 0
jne 0x5109ce
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 9
mov dword [ebp - 0x2edc], 0x80004004
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2edc]
jmp 0x510d80
mov dword [ebp - 0x2ec0], 0
jmp 0x5109e9
mov edx, dword [ebp - 0x2ec0]
add edx, 1
mov dword [ebp - 0x2ec0], edx
mov eax, dword [ebp - 0x2ec0]
cmp eax, dword [ebp - 0x164]
jge 0x510b34
mov byte [ebp - 0xe0], 0
push 0x7f
push 0
lea ecx, [ebp - 0xdf]
push ecx
call fcn.0066eb10
add esp, 0xc
mov edx, dword [ebp - 0x2ec0]
push edx
push str.download.hash.item__d.value
lea eax, [ebp - 0xe0]
push eax
call fcn.0066d97a
add esp, 0xc
lea ecx, [ebp - 0x184]
call fcn.00419670
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
call fcn.00415b40
mov dword [ebp - 0x2ed4], eax
lea ecx, [ebp - 0x184]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2f44], esp
lea edx, [ebp - 0xe0]
push edx
call fcn.00419d50
mov dword [ebp - 0x2f2c], eax
mov eax, dword [ebp - 0x2ed4]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2ed4]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x2f04], eax
cmp dword [ebp - 0x2f04], 0
jne 0x510af1
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 0xa
mov dword [ebp - 0x2ef4], 0x80004004
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x184]
call fcn.00419eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2ef4]
jmp 0x510d80
cmp dword [ebp - 0x2ec0], 0
jne 0x510b0e
lea edx, [ebp - 0x184]
push edx
lea ecx, [ebp - 0x2dc]
call fcn.004195f0
jmp 0x510b20
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004f2dc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x184]
call fcn.00419eb0
jmp 0x5109da
lea ecx, [ebp + 0x10]
call fcn.0041af60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x510b4c
jmp 0x510d30
lea ecx, [ebp - 0x1ac]
call fcn.00515070
mov byte [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 0x10]
call fcn.0041af60
push eax
lea ecx, [ebp - 0x1ac]
call fcn.005153c0
test eax, eax
jne 0x510b8e
jmp 0x510d30
mov byte [ebp - 0x60], 0
push 0x3f
push 0
lea eax, [ebp - 0x5f]
push eax
call fcn.0066eb10
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0xf
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
imul edx, ecx, 0xe
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
imul edx, ecx, 0xd
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
imul edx, ecx, 0xc
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
imul edx, ecx, 0xb
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
imul edx, ecx, 0xa
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
imul edx, ecx, 9
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
shl ecx, 3
movzx edx, byte [ebp + ecx - 0x20]
push edx
mov eax, 1
imul ecx, eax, 7
movzx edx, byte [ebp + ecx - 0x20]
push edx
mov eax, 1
imul ecx, eax, 6
movzx edx, byte [ebp + ecx - 0x20]
push edx
mov eax, 1
imul ecx, eax, 5
movzx edx, byte [ebp + ecx - 0x20]
push edx
mov eax, 1
shl eax, 2
movzx ecx, byte [ebp + eax - 0x20]
push ecx
mov edx, 1
imul eax, edx, 3
movzx ecx, byte [ebp + eax - 0x20]
push ecx
mov edx, 1
shl edx, 1
movzx eax, byte [ebp + edx - 0x20]
push eax
mov ecx, 1
shl ecx, 0
movzx edx, byte [ebp + ecx - 0x20]
push edx
mov eax, 1
imul ecx, eax, 0
movzx edx, byte [ebp + ecx - 0x20]
push edx
push 0x6e1600
lea eax, [ebp - 0x60]
push eax
call fcn.0066d97a
add esp, 0x48
lea ecx, [ebp - 0x2dc]
call fcn.0041af60
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00670ab0
add esp, 8
test eax, eax
jne 0x510d28
mov edx, dword [ebp - 0x2eb8]
mov dword [edx + 0x2d64], 5
push 1
push 0
push 5
mov ecx, dword [ebp - 0x2eb8]
call fcn.00511940
mov eax, dword [ebp - 0x2eb8]
mov byte [eax + 0x2d5c], 0
mov ecx, dword [ebp - 0x2eb8]
mov dword [ecx + 0x3694], 1
mov dword [ebp - 0x2f14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2f14]
jmp 0x510d80
xor edx, edx
jne 0x510b34
lea eax, [ebp - 0x2eb4]
push eax
mov ecx, dword [ebp - 0x2eb8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2eb8]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x2efc], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2eb4]
call fcn.0050dbf0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00414390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00419eb0
mov eax, dword [ebp - 0x2efc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 0x20