Function at 0x4040a0
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x138
mov eax, dword [0x417034]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
push esi
mov esi, dword [esp + 0x14c]
push edi
mov edi, dword [esp + 0x154]
mov dword [esp + 0x14], eax
xor eax, eax
push 0xff
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x48], al
lea eax, [esp + 0x49]
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edx
call fcn.00409070
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push ebx
call ebp
push edi
mov ebx, eax
call ebp
lea ebx, [ebx + eax + 2]
push ebx
call fcn.0040885b
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
jne 0x404155
mov eax, dword [esi + 4]
test eax, eax
je 0x404137
mov esi, eax
jmp 0x40413a
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00406b30
add esp, 4
mov eax, 0xe
jmp 0x4044d2
push ebx
push 0
push eax
call fcn.00409070
add esp, 0xc
cmp ebx, 0x7fffffff
jbe 0x404170
mov eax, 0x80070057
jmp 0x404181
mov edx, dword [esp + 0x20]
mov eax, edi
mov ecx, ebx
call fcn.004013f0
test eax, eax
jge 0x4041b0
movzx edi, ax
mov eax, dword [esi + 4]
test eax, eax
jne 0x40418e
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push 0x17
mov edx, eax
call fcn.00406870
mov ebp, dword [esp + 0x20]
add esp, 8
jmp 0x40449e
push edi
call ebp
lea eax, [eax + edi + 1]
push eax
push edi
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x2f
mov ebp, dword [esp + 0x20]
je 0x404209
push 0x412ca4
mov ecx, ebx
mov edi, ebp
call fcn.00401340
test eax, eax
jge 0x404209
movzx edi, ax
mov eax, dword [esi + 4]
test eax, eax
je 0x4041e8
mov esi, eax
jmp 0x4041eb
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebp
push 0x17
mov edx, esi
call fcn.00406870
mov ebp, dword [esp + 0x20]
add esp, 8
jmp 0x40449e
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebx
mov edi, ebp
call fcn.00401340
test eax, eax
jl 0x4041da
add ebx, ebx
push ebx
mov dword [esp + 0x28], ebx
call fcn.0040885b
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x404261
mov eax, dword [esi + 4]
test eax, eax
je 0x40423f
mov esi, eax
jmp 0x404242
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00406b30
mov ebp, dword [esp + 0x1c]
add esp, 4
mov edi, 0xe
jmp 0x40449e
mov ebx, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push ebp
call ebx
test eax, eax
jne 0x4042e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x4042d6
mov eax, dword [esp + 0x1c]
push eax
call fcn.00407d45
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.0040885b
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x4042bf
mov eax, dword [esi + 4]
test eax, eax
je 0x4042b5
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
jmp 0x404247
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 8]
push edx
jmp 0x404247
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push ebp
call ebx
test eax, eax
jne 0x4042de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4041dd
mov edi, dword [esp + 0x1c]
push 0
push edi
push str._Info__Downloading_update_package_from______s_n
call fcn.004070f0
mov edi, dword [esp + 0x20]
add esp, 0xc
push 0x100
lea edx, [esp + 0x44]
push edx
push 0x1b
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x40]
mov eax, esi
call fcn.00404de0
cmp eax, 1
jne 0x404342
mov eax, dword [esi + 4]
test eax, eax
je 0x404324
mov esi, eax
jmp 0x404327
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, esi
mov esi, edi
call fcn.00406530
mov ebp, dword [esp + 0x18]
mov edi, 0x642
jmp 0x40449e
push 0x104
call fcn.0040885b
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40437a
mov eax, dword [esi + 4]
test eax, eax
je 0x404360
mov esi, eax
jmp 0x404363
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406b30
add esp, 4
mov edi, 0xe
jmp 0x40449e
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push eax
push 0
push 0x104
push ebp
push ebx
push 0
mov dword [esp + 0x48], vtable.CDownloadBindStatusCallback.0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0
call sub.urlmon.dll_URLDownloadToCacheFileA
cmp byte [esi + 0x10d], 0
je 0x4043dd
mov eax, dword [esi + 4]
test eax, eax
je 0x4043c3
mov esi, eax
jmp 0x4043c6
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, esi
mov esi, edi
call fcn.00406530
mov edi, 0x642
jmp 0x40449e
test eax, eax
jge 0x40440c
mov eax, dword [esi + 4]
test eax, eax
je 0x4043ec
mov esi, eax
jmp 0x4043ef
mov esi, dword [esi + 8]
push ebx
mov ebx, dword [esp + 0x14]
push 0x1c
mov edx, esi
mov ecx, edi
call fcn.00406870
add esp, 8
mov edi, 2
jmp 0x40449e
push 0
push ebx
push str._Info__Downloading_update_package_from______s_is_complete._n
call fcn.004070f0
mov ebx, dword [esp + 0x34]
add esp, 0xc
push ebp
mov eax, ebx
call fcn.00405c30
add esp, 4
cmp eax, 0x800b0001
jne 0x404459
mov eax, dword [esi + 4]
test eax, eax
je 0x40443d
mov esi, eax
jmp 0x404440
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, esi
push 0x15
mov esi, edi
call fcn.004065e0
add esp, 4
mov edi, 0x78
jmp 0x40449e
test eax, eax
je 0x404485
mov eax, dword [esi + 4]
test eax, eax
je 0x404468
mov esi, eax
jmp 0x40446b
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
push ebp
push 0x16
mov edx, esi
mov ecx, edi
call fcn.00406870
add esp, 8
mov edi, 4
jmp 0x40449e
mov edx, dword [esp + 0x15c]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
push esi
push edi
call fcn.004044f0
add esp, 0x10
mov edi, eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00407d45
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x4044bc
push eax
call fcn.00407d45
add esp, 4
test ebp, ebp
je 0x4044d0
push ebp
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebp
call fcn.00407d45
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040850f
add esp, 0x138
ret