Function at 0x4b66c2
Capabilities:
Check if file exists
Download url
Receive data

Disassembly:
push 0x64
mov eax, 0x5d6199
call fcn.00506dc7
mov dword [ebp - 0x30], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00430729
test eax, eax
je 0x4b6b00
mov ecx, eax
call fcn.00415db9
jmp 0x4b6af6
push 0x60dcd8
push ebx
mov ecx, esi
call fcn.00489a9d
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x4b6aef
push str.enable
push ebx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00489b7c
and dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
push str.name
push ebx
push eax
mov ecx, esi
call fcn.00489b7c
push str.desc
push ebx
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00489b7c
push str.click
push ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00489b7c
push str.iconurl
push ebx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
call fcn.00489b7c
push str.order
push ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00489b7c
mov byte [ebp - 4], 5
call fcn.0041279d
push eax
lea ecx, [ebp - 0x14]
call fcn.00411d94
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
cmp dword [eax - 0xc], 0
je 0x4b6926
lea ecx, [ebp - 0x6c]
call fcn.0042ca82
push ecx
mov esi, esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [esi], eax
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x40]
push eax
call fcn.0042f284
push ecx
mov esi, esp
mov byte [ebp - 4], 8
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
pop ecx
mov dword [esi], eax
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x44]
push eax
call fcn.00483d99
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push str.configimagesmedal
mov byte [ebp - 4], 9
call fcn.00413f09
push ecx
push esp
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xa
call fcn.0043944c
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x6c]
call fcn.00434114
mov byte [ebp - 4], 0xb
call fcn.0041279d
push eax
lea ecx, [ebp - 0x28]
call fcn.00411d94
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push 0x60ccfc
push eax
call fcn.00412690
pop ecx
pop ecx
mov eax, esp
mov dword [ebp - 0x4c], esp
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.0043910d
add esp, 8
mov byte [ebp - 4], 0xd
mov esi, esp
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
push eax
call fcn.00412393
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x24]
pop ecx
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xc
call fcn.00434114
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
call fcn.00467006
pop ecx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411f3a
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
je 0x4b68c6
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b68d6
xor eax, eax
push eax
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push eax
call sub.urlmon.dll_URLDownloadToFileW
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.0042e60b
mov ecx, dword [ebp - 0x5c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
jmp 0x4b6929
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [eax + 0xa4]
call fcn.00446d7f
mov ecx, dword [ebp - 0x30]
mov esi, eax
cmp esi, dword [ecx + 0xa4]
je 0x4b6950
mov eax, dword [ebp - 0x18]
cmp eax, dword [esi + 0x10]
jge 0x4b6956
mov esi, dword [ecx + 0xa4]
cmp esi, dword [ecx + 0xa4]
je 0x4b69e4
push 0x60cf80
lea ecx, [ebp - 0x20]
call fcn.0042e69b
test eax, eax
je 0x4b6988
push 0x60d604
lea ecx, [ebp - 0x20]
call fcn.0042e677
test eax, eax
je 0x4b6988
xor eax, eax
jmp 0x4b698b
xor eax, eax
inc eax
mov byte [esi + 0x18], al
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4b69a5
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00412624
mov eax, dword [ebp - 0x10]
push eax
call fcn.0058a233
pop ecx
mov dword [esi + 0x1c], eax
lea ecx, [esi + 0x20]
lea eax, [ebp - 0x3c]
push eax
call fcn.00411f3a
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x24]
push eax
call fcn.00411f3a
lea eax, [ebp - 0x34]
lea ecx, [esi + 0x28]
push eax
call fcn.00411f3a
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x2c]
push eax
call fcn.00411f3a
jmp 0x4b6a9e
lea ecx, [ebp - 0x70]
call fcn.00454c13
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push 0x60cf80
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x70], eax
call fcn.0042e69b
test eax, eax
je 0x4b6a1c
push 0x60d604
lea ecx, [ebp - 0x20]
call fcn.0042e677
mov byte [ebp - 0x6c], 0
test eax, eax
jne 0x4b6a20
mov byte [ebp - 0x6c], 1
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x4b6a37
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00412624
mov eax, dword [ebp - 0x10]
push eax
call fcn.0058a233
pop ecx
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x3c]
push eax
call fcn.00411f3a
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x60]
call fcn.00411f3a
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00411f3a
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.00411f3a
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ecx + 0xa4]
call fcn.0044afda
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x70]
push eax
add ecx, 0x14
call fcn.00458f14
lea ecx, [ebp - 0x70]
call fcn.00457458
lea ecx, [edi - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x3c]
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00412ac4
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.004162f3
mov ebx, eax
test ebx, ebx
jne 0x4b66ef
mov al, 1
call fcn.00506d90
ret 4