Function at 0x4054c0
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 0x405575
mov eax, dword [esi + 4]
test eax, eax
je 0x405557
mov esi, eax
jmp 0x40555a
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 0x4058d3
push ebx
push 0
push eax
call fcn.00409070
add esp, 0xc
cmp ebx, 0x7fffffff
jbe 0x405590
mov eax, 0x80070057
jmp 0x4055a1
mov edx, dword [esp + 0x20]
mov eax, edi
mov ecx, ebx
call fcn.004013f0
test eax, eax
jge 0x4055cd
movzx edi, ax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4055ae
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]
jmp 0x40589c
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 0x405623
push 0x412c6c
mov ecx, ebx
mov edi, ebp
call fcn.00401340
test eax, eax
jge 0x405623
movzx edi, ax
mov eax, dword [esi + 4]
test eax, eax
je 0x405605
mov esi, eax
jmp 0x405608
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]
jmp 0x40589c
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebx
mov edi, ebp
call fcn.00401340
test eax, eax
jl 0x4055f7
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 0x40567b
mov eax, dword [esi + 4]
test eax, eax
je 0x405659
mov esi, eax
jmp 0x40565c
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 0x40589f
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 0x4056fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x4056f0
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 0x4056d9
mov eax, dword [esi + 4]
test eax, eax
je 0x4056cf
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
jmp 0x405661
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 8]
push edx
jmp 0x405661
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push ebp
call ebx
test eax, eax
jne 0x4056f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4055fa
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 0x40575c
mov eax, dword [esi + 4]
test eax, eax
je 0x40573e
mov esi, eax
jmp 0x405741
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 0x40589f
push 0x104
call fcn.0040885b
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x405794
mov eax, dword [esi + 4]
test eax, eax
je 0x40577a
mov esi, eax
jmp 0x40577d
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406b30
add esp, 4
mov edi, 0xe
jmp 0x40589f
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 0x4057f7
mov eax, dword [esi + 4]
test eax, eax
je 0x4057dd
mov esi, eax
jmp 0x4057e0
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, esi
mov esi, edi
call fcn.00406530
mov edi, 0x642
jmp 0x40589f
test eax, eax
jge 0x405820
mov eax, dword [esi + 4]
test eax, eax
je 0x405806
mov esi, eax
jmp 0x405809
mov esi, dword [esi + 8]
push ebx
mov ebx, dword [esp + 0x14]
push 0x1c
mov edx, esi
mov ecx, edi
call fcn.00406870
mov edi, 2
jmp 0x40589c
mov eax, dword [esp + 0x28]
push ebp
call fcn.00405c30
add esp, 4
cmp eax, 0x800b0001
jne 0x40585b
mov eax, dword [esi + 4]
test eax, eax
je 0x40583f
mov esi, eax
jmp 0x405842
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 0x40589f
test eax, eax
je 0x405884
mov eax, dword [esi + 4]
test eax, eax
je 0x40586a
mov esi, eax
jmp 0x40586d
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
push ebp
push 0x16
mov edx, esi
mov ecx, edi
call fcn.00406870
mov edi, 4
jmp 0x40589c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x15c]
push ecx
push edi
mov ecx, ebp
mov edi, esi
call fcn.004059b0
mov edi, eax
add esp, 8
mov edx, dword [esp + 0x20]
push edx
call fcn.00407d45
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x4058bd
push eax
call fcn.00407d45
add esp, 4
test ebp, ebp
je 0x4058d1
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