Function at 0x430390
Capabilities:
Check if file exists
Download url
Get common file path
Get file attributes
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dcdf
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x238]
push edx
push 0x104
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x464], ecx
mov byte [ebp - 0x449], 0
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp eax, 0x104
ja 0x430ae0
test eax, eax
je 0x430ae0
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x450]
call fcn.00401d80
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x450]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43043b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4304c6
push str._GetTempPath___does_not_exist
lea ecx, [ebp - 0x460]
call fcn.00401d80
push eax
lea ecx, [ebp - 0x450]
push esi
push ecx
mov dword [ebp - 4], 4
call fcn.00420d00
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00405100
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43049d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4304c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x440]
push ecx
push 0
push 0x5c78f0
lea edx, [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov dword [ebp - 0x45c], eax
test eax, eax
jne 0x4305fa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.00560616
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x444]
call fcn.00420a50
mov edi, eax
push str._GetTempFileName_failed:
lea ecx, [ebp - 0x448]
mov dword [ebp - 4], 6
call fcn.00401d80
push eax
lea eax, [ebp - 0x450]
push esi
push eax
mov byte [ebp - 4], 7
call fcn.00420d00
push edi
push eax
lea ecx, [ebp - 0x460]
mov bl, 8
push ecx
mov byte [ebp - 4], bl
call fcn.00420d00
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4305ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4305d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4305fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x440]
push ecx
lea ecx, [ebp - 0x454]
call fcn.00401d80
push str..exe
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], 0xa
call fcn.00401d80
mov byte [ebp - 4], 0xb
mov edi, dword [ebp - 0x458]
mov eax, dword [edi]
mov edx, dword [eax - 0xc]
lea ecx, [edx - 4]
test ecx, ecx
js 0x430ad6
cmp ecx, edx
jg 0x430ad6
cmp word [eax + ecx*2], 0x2e
jne 0x430696
push 4
lea eax, [edx - 4]
push eax
lea edx, [ebp - 0x444]
push edx
mov ecx, edi
call fcn.00405020
push eax
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0xc
call fcn.00405100
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430696
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x468]
add eax, 0xfffffff0
push eax
call fcn.00405370
lea edi, [eax + 0x10]
mov dword [ebp - 0x444], edi
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x448]
mov bl, 0xd
push eax
mov byte [ebp - 4], bl
call fcn.00420d00
add esp, 0x10
push eax
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0xe
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430705
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430725
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5c232c
push 0x5c6bb8
lea ecx, [ebp - 0x454]
call fcn.00404af0
cmp dword [ebp - 0x45c], 0
je 0x430a9e
push 0x5c2e20
lea ecx, [ebp - 0x45c]
call fcn.00401d80
push eax
push 0
push 0
lea ecx, [ebp - 0x488]
push ecx
mov byte [ebp - 4], 0xf
call fcn.004297b0
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x458]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x454]
lea edx, [ebp - 0x488]
push edx
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [ebp - 0x458], eax
test eax, eax
je 0x430955
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xa
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.00560616
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x450]
call fcn.00420a50
mov edi, eax
push str._URLDownloadToFile_failed:
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0x12
call fcn.00401d80
push eax
lea ecx, [ebp - 0x448]
push esi
push ecx
mov byte [ebp - 4], 0x13
call fcn.00420d00
push edi
push eax
lea edx, [ebp - 0x444]
mov bl, 0x14
push edx
mov byte [ebp - 4], bl
call fcn.00420d00
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43087a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x460]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4308a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x450]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4308c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x458]
cmp eax, 0x8007000e
jne 0x43091f
push str._E_OUTOFMEMORY
lea ecx, [ebp - 0x448]
call fcn.00401d80
push eax
lea ecx, [ebp - 0x444]
push esi
push ecx
mov byte [ebp - 4], 0x16
call fcn.00420d00
add esp, 0xc
mov byte [ebp - 4], 0x17
push eax
mov ecx, esi
call fcn.00405100
lea ecx, [ebp - 0x444]
call fcn.004020d0
lea ecx, [ebp - 0x448]
call fcn.004020d0
jmp 0x430a78
cmp eax, 0x800c0008
jne 0x430a78
push str._INET_E_DOWNLOAD_FAILURE
lea ecx, [ebp - 0x448]
call fcn.00401d80
push eax
lea edx, [ebp - 0x444]
push esi
push edx
mov byte [ebp - 4], 0x18
call fcn.00420d00
add esp, 0xc
mov byte [ebp - 4], 0x19
jmp 0x4308fc
cmp byte [ebp - 0x470], 0
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
jne 0x4309fc
mov bl, 0x1a
lea ebx, [ebx]
push 0x64
call edi
push 0x5c5bf4
lea ecx, [ebp - 0x448]
call fcn.00401d80
push eax
lea eax, [ebp - 0x444]
push esi
push eax
mov byte [ebp - 4], bl
call fcn.00420d00
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4309c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4309ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x470], 0
je 0x430970
push 0x2bc
call edi
lea ecx, [ebp - 0x454]
call fcn.0042f790
test al, al
je 0x430a1b
mov byte [ebp - 0x449], 1
jmp 0x430a66
push str._file_doesnt_exist
lea ecx, [ebp - 0x46c]
call fcn.00401d80
push eax
lea ecx, [ebp - 0x458]
push esi
push ecx
mov byte [ebp - 4], 0x1c
call fcn.00420d00
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 0x1d
call fcn.00405100
lea ecx, [ebp - 0x458]
call fcn.004020d0
lea ecx, [ebp - 0x46c]
mov byte [ebp - 4], 0x11
call fcn.004020d0
mov ecx, dword [ebp - 0x464]
lea edx, [ebp - 0x454]
push edx
call fcn.00405100
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x474]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430a9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x468]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430ac4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x454]
jmp 0x430bcf
push 0x80070057
call fcn.00401090
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.00560616
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x448]
call fcn.00420a50
mov edi, eax
push str._GetTempPath___failed:
lea ecx, [ebp - 0x444]
mov dword [ebp - 4], 0
call fcn.00401d80
push eax
lea eax, [ebp - 0x45c]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00420d00
push edi
push eax
lea ecx, [ebp - 0x464]
mov bl, 2
push ecx
mov byte [ebp - 4], bl
call fcn.00420d00
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00405100
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430b76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x45c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430b9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430bc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x448]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430beb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x449]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret 4