Function at 0x404880
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov eax, dword [0x4160a8]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x538], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x530], 0
push 0x3ff
push 0
lea eax, [ebp - 0x52f]
push eax
call fcn.004076d0
add esp, 0xc
mov byte [ebp - 0x128], 0
push 0xff
push 0
lea ecx, [ebp - 0x127]
push ecx
call fcn.004076d0
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + eax + 2]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00407617
add esp, 4
mov dword [ebp - 0x53c], eax
mov eax, dword [ebp - 0x53c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40498a
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00406230
add esp, 0xc
mov dword [ebp - 0x534], 0xe
jmp 0x404e14
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004076d0
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004035b0
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jge 0x4049f2
mov edx, dword [ebp - 0x12c]
and edx, 0xffff
mov dword [ebp - 0x534], edx
mov eax, dword [ebp - 0x10]
push eax
push 0x17
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405fb0
add esp, 0x14
jmp 0x404e14
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x14]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_CharPrevA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x404a78
push 0x412a40
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00403600
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jge 0x404a78
mov eax, dword [ebp - 0x12c]
and eax, 0xffff
mov dword [ebp - 0x534], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x17
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405fb0
add esp, 0x14
jmp 0x404e14
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00403600
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jge 0x404ace
mov ecx, dword [ebp - 0x12c]
and ecx, 0xffff
mov dword [ebp - 0x534], ecx
mov edx, dword [ebp - 0x10]
push edx
push 0x17
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405fb0
add esp, 0x14
jmp 0x404e14
mov edx, dword [ebp - 0x18]
shl edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00407617
add esp, 4
mov dword [ebp - 0x540], eax
mov ecx, dword [ebp - 0x540]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x404b1f
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00406230
add esp, 0xc
mov dword [ebp - 0x534], 0xe
jmp 0x404e14
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x404bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7a
jne 0x404bd7
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x544], ecx
mov edx, dword [ebp - 0x544]
push edx
call fcn.0040767c
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00407617
add esp, 4
mov dword [ebp - 0x548], eax
mov ecx, dword [ebp - 0x548]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x404baf
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00406230
add esp, 0xc
mov dword [ebp - 0x534], 0xe
jmp 0x404e14
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x404bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x404c0a
mov ecx, dword [ebp - 0x10]
push ecx
push 0x17
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405fb0
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x534], ecx
jmp 0x404e14
push 0
mov edx, dword [ebp - 4]
push edx
push str._Info__Downloading_update_package_from______s_n
call fcn.00406990
add esp, 0xc
push 0x100
lea eax, [ebp - 0x128]
push eax
push 0x1b
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [ebp - 0x128]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403d90
cmp eax, 1
jne 0x404c71
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405cc0
add esp, 0xc
mov dword [ebp - 0x534], 0x642
jmp 0x404e14
push 0x104
call fcn.00407617
add esp, 4
mov dword [ebp - 0x54c], eax
mov edx, dword [ebp - 0x54c]
mov dword [ebp - 0x538], edx
mov dword [ebp - 8], 0x104
cmp dword [ebp - 0x538], 0
jne 0x404cc8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406230
add esp, 0xc
mov dword [ebp - 0x534], 0xe
jmp 0x404e14
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x55c]
call fcn.00403f20
push eax
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x538]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
call sub.urlmon.dll_URLDownloadToCacheFileA
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x55c]
call fcn.00403f60
mov ecx, dword [ebp + 0xc]
call fcn.00403d20
movzx eax, al
test eax, eax
je 0x404d38
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405cc0
add esp, 0xc
mov dword [ebp - 0x534], 0x642
jmp 0x404e14
cmp dword [ebp - 0x12c], 0
jge 0x404d6f
mov eax, dword [ebp - 4]
push eax
push 0x1c
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00405fb0
add esp, 0x14
mov dword [ebp - 0x534], 2
jmp 0x404e14
mov eax, dword [ebp - 0x538]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00405210
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x800b0001
jne 0x404db7
push 0x15
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405d30
add esp, 0x10
mov dword [ebp - 0x534], 0x78
jmp 0x404e14
cmp dword [ebp - 0x14], 0
je 0x404deb
mov ecx, dword [ebp - 0x538]
push ecx
push 0x16
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00403cd0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405fb0
add esp, 0x14
mov dword [ebp - 0x534], 4
jmp 0x404e14
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x538]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404f60
add esp, 0x18
mov dword [ebp - 0x534], eax
cmp dword [ebp - 0x10], 0
je 0x404e32
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x560], ecx
mov edx, dword [ebp - 0x560]
push edx
call fcn.0040767c
add esp, 4
cmp dword [ebp - 4], 0
je 0x404e50
mov eax, dword [ebp - 4]
mov dword [ebp - 0x564], eax
mov ecx, dword [ebp - 0x564]
push ecx
call fcn.0040767c
add esp, 4
cmp dword [ebp - 0x538], 0
je 0x404e81
mov edx, dword [ebp - 0x538]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [ebp - 0x538]
mov dword [ebp - 0x568], eax
mov ecx, dword [ebp - 0x568]
push ecx
call fcn.0040767c
add esp, 4
mov eax, dword [ebp - 0x534]
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00407687
mov esp, ebp
pop ebp
ret