Function at 0x403260
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x13c
mov eax, dword [0x417034]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x140]
push ebx
mov ebx, dword [esp + 0x150]
push ebp
push esi
mov esi, dword [esp + 0x150]
push edi
mov edi, dword [esp + 0x158]
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 0x403315
mov eax, dword [esi + 4]
test eax, eax
je 0x4032f7
mov esi, eax
jmp 0x4032fa
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 0x40367f
push ebx
push 0
push eax
call fcn.00409070
add esp, 0xc
cmp ebx, 0x7fffffff
jbe 0x403330
mov eax, 0x80070057
jmp 0x403341
mov edx, dword [esp + 0x20]
mov eax, edi
mov ecx, ebx
call fcn.004013f0
test eax, eax
jge 0x40336d
movzx edi, ax
mov eax, dword [esi + 4]
test eax, eax
jne 0x40334e
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 0x403648
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 0x4033c3
push 0x412ca4
mov ecx, ebx
mov edi, ebp
call fcn.00401340
test eax, eax
jge 0x4033c3
movzx edi, ax
mov eax, dword [esi + 4]
test eax, eax
je 0x4033a5
mov esi, eax
jmp 0x4033a8
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 0x403648
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebx
mov edi, ebp
call fcn.00401340
test eax, eax
jl 0x403397
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 0x40341b
mov eax, dword [esi + 4]
test eax, eax
je 0x4033f9
mov esi, eax
jmp 0x4033fc
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 0x40364b
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 0x40349c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x7a
jne 0x403490
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 0x403479
mov eax, dword [esi + 4]
test eax, eax
je 0x40346f
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
jmp 0x403401
mov edx, dword [esp + 0x14]
mov esi, dword [esi + 8]
push edx
jmp 0x403401
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push ebp
call ebx
test eax, eax
jne 0x403498
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x40339a
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 0x4034fc
mov eax, dword [esi + 4]
test eax, eax
je 0x4034de
mov esi, eax
jmp 0x4034e1
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 0x40364b
push 0x104
call fcn.0040885b
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403534
mov eax, dword [esi + 4]
test eax, eax
je 0x40351a
mov esi, eax
jmp 0x40351d
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x10]
push edi
call fcn.00406b30
add esp, 4
mov edi, 0xe
jmp 0x40364b
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 0x403597
mov eax, dword [esi + 4]
test eax, eax
je 0x40357d
mov esi, eax
jmp 0x403580
mov esi, dword [esi + 8]
mov ebx, dword [esp + 0x10]
mov ecx, esi
mov esi, edi
call fcn.00406530
mov edi, 0x642
jmp 0x40364b
test eax, eax
jge 0x4035c3
mov eax, dword [esi + 4]
test eax, eax
je 0x4035a6
mov esi, eax
jmp 0x4035a9
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 0x403648
push 0
push ebx
push str._Info__Downloading_update_package_from______s_is_complete._n
call fcn.004070f0
mov eax, dword [esp + 0x34]
add esp, 0xc
push ebp
call fcn.00405c30
add esp, 4
cmp eax, 0x800b0001
jne 0x40360e
mov eax, dword [esi + 4]
test eax, eax
je 0x4035f2
mov esi, eax
jmp 0x4035f5
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 0x40364b
test eax, eax
je 0x403637
mov eax, dword [esi + 4]
test eax, eax
je 0x40361d
mov esi, eax
jmp 0x403620
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 0x403648
mov ecx, dword [esp + 0x10]
push ecx
push edi
mov edi, ebp
mov ecx, esi
call fcn.004036a0
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 0x403669
push eax
call fcn.00407d45
add esp, 4
test ebp, ebp
je 0x40367d
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, 0x13c
ret