Function at 0x40fd10
Capabilities:
Check if file exists
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59903f
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x6102d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3ec], eax
test edi, edi
je 0x41058d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd56
sub ecx, edx
sar ecx, 1
je 0x41058d
lea ecx, [ebp - 0x440]
call fcn.0044576b
push str.http:__down.wan.china.com_gamebox_gameiconlistmini
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0
call fcn.00445a11
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x440]
call fcn.004459bc
lea eax, [ebp - 0x2d8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044d963
mov esi, eax
add esp, 8
lea eax, [ebp - 0x2d8]
cmp eax, esi
je 0x40fdf4
mov ecx, eax
call fcn.00411360
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2d8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x2c8], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x230]
call fcn.0040a610
xor eax, eax
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 7
mov word [ebp - 0x350], ax
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x27c], 7
mov word [ebp - 0x290], ax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea ecx, [ebp - 0x3d8]
mov byte [ebp - 4], 6
call fcn.00447f09
push 0
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 7
call fcn.004467da
push 1
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x3d8]
call fcn.00449832
lea ecx, [ebp - 0x40c]
call fcn.00447664
test al, al
jne 0x41052a
push edi
lea ecx, [ebp - 0x230]
call fcn.0040f6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x368]
push eax
call fcn.0044da86
add esp, 8
push eax
lea ecx, [ebp - 0x40c]
mov byte [ebp - 4], 0xa
call fcn.00446a92
push eax
lea ecx, [ebp - 0x3fc]
call fcn.0044668f
lea ecx, [ebp - 0x368]
call fcn.0040a610
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xd
call fcn.0040a530
lea ecx, [ebp - 0x3fc]
call fcn.00447664
test al, al
jne 0x41051f
push 0x5a1710
lea ecx, [ebp - 0x3fc]
call fcn.00446b86
mov ecx, eax
call fcn.00447281
push eax
lea ecx, [ebp - 0x278]
call fcn.0040f5b0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044d796
add esp, 8
lea ecx, [ebp - 0x2c0]
push eax
call fcn.0040cd20
lea ecx, [ebp - 0x2a8]
call fcn.0040a530
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xd
call fcn.0040a610
push 0x5a1718
lea ecx, [ebp - 0x3fc]
call fcn.00446b86
mov ecx, eax
call fcn.00447281
push eax
lea ecx, [ebp - 0x278]
call fcn.0040f5b0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044d796
add esp, 8
lea ecx, [ebp - 0x308]
push eax
call fcn.0040cd20
lea ecx, [ebp - 0x2a8]
call fcn.0040a530
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xd
call fcn.0040a610
push str.iconurl
lea ecx, [ebp - 0x3fc]
call fcn.00446b86
mov ecx, eax
call fcn.00447281
push eax
lea ecx, [ebp - 0x278]
call fcn.0040f5b0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044d796
add esp, 8
lea ecx, [ebp - 0x290]
push eax
call fcn.0040cd20
lea ecx, [ebp - 0x2a8]
call fcn.0040a530
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xd
call fcn.0040a610
cmp dword [ebp - 0x27c], 8
lea eax, [ebp - 0x290]
cmovae eax, dword [ebp - 0x290]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044a417
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0x11
call fcn.00410740
mov ecx, eax
call fcn.004132e0
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x3e8], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4100a3
sub edx, dword [ebp - 0x3e8]
mov ecx, esi
sar edx, 1
push edx
push eax
push 0
call fcn.00411780
xor ecx, ecx
movups xmm1, xmmword [eax]
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x278], xmm1
mov word [eax], cx
movq qword [ebp - 0x268], xmm0
cmp dword [ebp - 0x264], 8
lea edx, [ebp - 0x278]
movd eax, xmm1
mov byte [ebp - 4], 0x12
cmovae edx, eax
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410110
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.00411630
lea ecx, [ebp - 0x278]
call fcn.0040a530
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0xd
call fcn.0040a530
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x248]
push eax
call esi
test eax, eax
je 0x410182
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
push 0
cmovae ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x290]
cmp dword [ebp - 0x27c], 8
push 0
cmovae eax, dword [ebp - 0x290]
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call esi
test eax, eax
je 0x41051f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056f980
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040f6c0
push 0x5a1724
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x13
call fcn.0040fb20
cmp dword [ebp - 0x2ac], 8
lea eax, [ebp - 0x2c0]
push dword [ebp - 0x2b0]
cmovae eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x260]
push eax
call fcn.004114b0
push 0x5a1728
lea ecx, [ebp - 0x260]
call fcn.0040fb20
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call esi
test eax, eax
je 0x410291
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x3e4], 0
mov dword [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0
push str.562c
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.0040f6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004119b0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.0040a530
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x3e4]
call fcn.00411a10
push str.e1b8
lea ecx, [ebp - 0x230]
call fcn.0040f6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004119b0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.0040a530
mov ecx, dword [ebp - 0x3ec]
mov eax, 0x5a178c
test ecx, ecx
cmovne eax, ecx
lea ecx, [ebp - 0x230]
push eax
call fcn.0040f6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004119b0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.0040a530
push str.682e
lea ecx, [ebp - 0x230]
call fcn.0040f6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004119b0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.0040a530
push edi
lea ecx, [ebp - 0x230]
call fcn.0040f6c0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x3e4]
call fcn.004119b0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.0040a530
push 0x5a1758
lea ecx, [ebp - 0x230]
call fcn.0040f6c0
lea eax, [ebp - 0x3e4]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0044c4c7
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x1b
jb 0x410413
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x338]
call fcn.0040f6c0
lea ecx, [ebp - 0x2a8]
call fcn.0040a530
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x1e
call fcn.0040a530
call fcn.00410740
mov ecx, eax
call fcn.00413410
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0040f6c0
push str.GameBox.exe
lea eax, [ebp - 0x2f0]
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.0040eca0
cmp dword [ebp - 0x324], 8
lea edi, [ebp - 0x338]
lea esi, [ebp - 0x2f0]
mov byte [ebp - 4], 0x20
cmovae edi, dword [ebp - 0x338]
lea edx, [ebp - 0x248]
cmp dword [ebp - 0x2dc], 8
lea ecx, [ebp - 0x320]
push edi
cmovae esi, dword [ebp - 0x2f0]
lea eax, [ebp - 0x260]
cmp dword [ebp - 0x234], 8
push esi
cmovae edx, dword [ebp - 0x248]
cmp dword [ebp - 0x30c], 8
push 0
cmovae ecx, dword [ebp - 0x320]
cmp dword [ebp - 0x24c], 8
push 1
cmovae eax, dword [ebp - 0x260]
push edx
push 0
push ecx
push eax
call fcn.0044c0f5
add esp, 0x2c
lea ecx, [ebp - 0x320]
call fcn.0040a530
lea ecx, [ebp - 0x2f0]
call fcn.0040a530
lea ecx, [ebp - 0x338]
call fcn.0040a530
lea ecx, [ebp - 0x3e4]
call fcn.0040f780
lea ecx, [ebp - 0x260]
call fcn.0040a530
lea ecx, [ebp - 0x3fc]
call fcn.004469d6
lea ecx, [ebp - 0x40c]
call fcn.004469d6
lea ecx, [ebp - 0x3d8]
call fcn.0040f820
lea ecx, [ebp - 0x248]
call fcn.0040a530
lea ecx, [ebp - 0x290]
call fcn.0040a530
lea ecx, [ebp - 0x308]
call fcn.0040a530
lea ecx, [ebp - 0x2c0]
call fcn.0040a530
lea ecx, [ebp - 0x350]
call fcn.0040a530
lea ecx, [ebp - 0x2d8]
call fcn.0040a610
lea ecx, [ebp - 0x440]
call fcn.00445810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ef18
mov esp, ebp
pop ebp
ret