Function at 0x403cf0
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov byte [esp + 0x30], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ecx, 0x3f
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
call esi
mov edi, eax
mov eax, dword [ebp + 0x18]
push eax
call esi
lea esi, [edi + eax + 2]
push esi
call fcn.00405ae8
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x403d6f
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402c00
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.00404380
add esp, 0xc
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
cmp esi, 0x7fffffff
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
jbe 0x403d94
mov eax, 0x80070057
jmp 0x403da0
push ebx
push esi
push edi
call fcn.00401000
test eax, eax
jge 0x403dcc
mov ecx, dword [ebp + 0xc]
and eax, 0xffff
push edi
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x17
push eax
call fcn.00402c00
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.00404b90
mov edi, dword [esp + 0x24]
add esp, 0x14
jmp 0x404071
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + ebx + 1]
push eax
push ebx
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x2f
je 0x403e20
push 0x40baf0
push esi
push edi
call fcn.00401100
test eax, eax
jge 0x403e20
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push 0x17
and eax, 0xffff
push edx
mov esi, eax
call fcn.00402c00
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00404b90
mov edi, dword [esp + 0x24]
add esp, 0x14
jmp 0x404071
mov ecx, dword [ebp + 0x18]
push ecx
push esi
push edi
call fcn.00401100
test eax, eax
jl 0x403df4
add esi, esi
push esi
mov dword [esp + 0x1c], esi
call fcn.00405ae8
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x403e8b
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
call ebx
test eax, eax
jne 0x403ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x7a
jne 0x403ec9
mov edx, dword [esp + 0x14]
push edx
call fcn.00405af6
mov eax, dword [esp + 0x1c]
push eax
call fcn.00405ae8
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
jne 0x403eb2
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402c00
mov edx, dword [ebp + 8]
push eax
push edx
call fcn.00404380
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov esi, 0xe
jmp 0x404071
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
call ebx
test eax, eax
jne 0x403ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x403ef2
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push 0x17
push edx
call fcn.00402c00
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00404b90
mov edi, dword [esp + 0x24]
add esp, 0x14
jmp 0x404071
mov ecx, dword [esp + 0x14]
push 0
push ecx
push str._Info__Downloading_update_package_from______s_n
call fcn.00404e60
mov ebx, dword [ebp + 8]
add esp, 0xc
push 0x100
lea edx, [esp + 0x34]
push edx
push 0x1b
push ebx
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00402c70
cmp eax, 1
jne 0x403f53
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00402c00
push eax
push ebx
call fcn.00404230
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov esi, 0x642
jmp 0x404071
push 0x104
call fcn.00405ae8
mov edi, eax
add esp, 4
test edi, edi
jne 0x403f85
mov edx, dword [ebp + 0x10]
push edx
mov ecx, esi
call fcn.00402c00
push eax
push ebx
call fcn.00404380
add esp, 0xc
mov esi, 0xe
jmp 0x404071
push esi
lea ecx, [esp + 0x24]
call fcn.00403440
push eax
mov eax, dword [esp + 0x18]
push 0
push 0x104
push edi
push eax
push 0
call sub.urlmon.dll_URLDownloadToCacheFileA
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
call fcn.00402e10
mov ecx, esi
call fcn.00402c20
test al, al
je 0x403fdb
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00402c00
push eax
push ebx
call fcn.00404230
add esp, 0xc
mov esi, 0x642
jmp 0x404071
mov eax, dword [esp + 0x10]
test eax, eax
jge 0x404006
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
push 0x1c
push eax
mov ecx, esi
call fcn.00402c00
push eax
push ebx
call fcn.00404b90
add esp, 0x14
mov esi, 2
jmp 0x404071
mov ecx, dword [ebp + 0x1c]
push edi
push ecx
call fcn.004038c0
add esp, 8
cmp eax, 0x800b0001
jne 0x404038
mov edx, dword [ebp + 0x10]
push 0x15
push edx
mov ecx, esi
call fcn.00402c00
push eax
push ebx
call fcn.00404290
add esp, 0x10
mov esi, 0x78
jmp 0x404071
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x40405b
push edi
push 0x16
push eax
mov ecx, esi
call fcn.00402c00
push eax
push ebx
call fcn.00404b90
add esp, 0x14
mov esi, 4
jmp 0x404071
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push ecx
push edx
push edi
push eax
push esi
push ebx
call fcn.00403a50
add esp, 0x18
mov esi, eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00405af6
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x40408f
push eax
call fcn.00405af6
add esp, 4
test edi, edi
je 0x4040a3
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push edi
call fcn.00405af6
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret