Function at 0x405c50
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ec98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [eax]
push ecx
push 0x10
push 0x104
push 0x104
mov ecx, esi
call fcn.00436e70
push eax
push edi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileA
push 0xffffffffffffffff
mov ecx, esi
mov edi, eax
call fcn.00436ef0
test edi, edi
jge 0x405d1f
mov esi, dword [ebp + 0x18]
push 0
push 0xff
push 0x100
mov ecx, esi
call fcn.00436e70
push eax
push 0
push edi
push str.urlmon.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00436ef0
push esi
lea edx, [ebp + 0x18]
push str.Cannot_connect_to_server:
push edx
call fcn.00436ce0
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00436a80
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x405e35
lea ecx, [ebp - 0x20]
call fcn.00438070
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
xor edi, edi
call fcn.00437c70
mov eax, dword [0x4804ec]
mov dword [ebp - 0x24], eax
mov ebx, vtable.CFileException.0
push edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xffffffff
call fcn.00436ae0
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push edi
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004381d0
test eax, eax
jne 0x405e17
mov eax, dword [ebp - 0x2c]
cmp eax, 0xc
je 0x405d97
cmp eax, 0xb
jne 0x405e4b
cmp edi, 0x14
jge 0x405e4b
call fcn.00417170
push 0x10
push 0x32
lea edx, [ebp + 8]
push 1
push edx
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004368f0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
inc edi
call fcn.00437c70
mov eax, dword [0x4804ec]
mov dword [ebp - 0x24], eax
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xffffffff
call fcn.00436ae0
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.004381d0
test eax, eax
je 0x405d86
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.004368f0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004380f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
call fcn.0040ad00
add esp, 4
mov edi, eax
push str.Cannot_open_download_file
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 7
call fcn.00436970
push esi
push eax
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 8
push eax
call fcn.00436bc0
push 0x45284c
lea ecx, [ebp + 0xc]
push eax
push ecx
mov byte [ebp - 4], 9
call fcn.00436c50
push edi
lea edx, [ebp + 8]
push eax
push edx
mov byte [ebp - 4], 0xa
call fcn.00436bc0
mov ecx, dword [ebp + 0x18]
push eax
mov byte [ebp - 4], 0xb
call fcn.00436a80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.004368f0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.004368f0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 8
call fcn.004368f0
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 7
call fcn.004368f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004368f0
mov dword [ebp - 0x34], ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.004368f0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004380f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret