Function at 0x408120
Capabilities:
Create directory
Get disk size
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4561f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1278
call fcn.004205b0
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
je 0x4089d4
cmp dword [ebp + 0xc], esi
je 0x4089d4
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1287]
mov byte [ebp - 0x1288], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x470a10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 2
mov edi, dword [eax + 0x1c]
cmp edi, 1
mov dword [ebp - 0x38], edi
jge 0x4081af
push str._Update_File_List_Empty.___Mgr_DownloadFile__
call fcn.00404400
add esp, 4
jmp 0x408862
mov ecx, ebx
call fcn.00407b40
test eax, eax
je 0x40828d
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0xf4], 1
jne 0x40822e
mov edx, dword [0x470a10]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x2c]
push 0x8a
push eax
mov byte [ebp - 4], 3
call fcn.00436220
mov ecx, dword [ebp - 0x2c]
add esp, 8
push 4
push 0x46e5dc
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x408218
push str.Program_Stop_by_User.___Mgr_DownloadFile__
call fcn.00404400
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jmp 0x408951
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
mov byte [edx + 0xf4], 0
call fcn.0043f295
mov dword [ebp - 0x3c], esi
cmp esi, edi
jge 0x408995
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x5c]
xor edi, edi
push esi
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x2c], edi
call fcn.00405fe0
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push str..cdf
push ecx
push edx
lea eax, [ebp - 0x20]
push str._s_s_s
push eax
mov byte [ebp - 4], 4
call fcn.0043620d
add esp, 0x14
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0043f295
lea ecx, [ebp - 0x20]
push ecx
mov ecx, ebx
call fcn.00407b90
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x4082cc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043f295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f295
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f295
mov eax, 0x12
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
mov ecx, ebx
call fcn.00407c40
test eax, eax
mov dword [ebp - 0x58], eax
jg 0x4083f3
mov edx, dword [ebp - 0x20]
push edx
push str._Error__URL_Path_:__s
call fcn.00404400
mov eax, dword [0x470a10]
add esp, 8
mov dword [ebp + 0xc], eax
lea ecx, [ebp + 0xc]
push 0x81
push ecx
mov byte [ebp - 4], 5
call fcn.00436220
mov edx, dword [ebp + 0xc]
add esp, 8
mov ecx, ebx
push edx
call fcn.00407af0
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push esi
push eax
add ecx, 0x14
call fcn.00405fe0
mov eax, dword [eax]
lea edx, [ebp - 0x184]
lea ecx, [ebp - 0x288]
push edx
push ecx
push 0
push 0
push eax
call fcn.004205df
add esp, 0x14
lea ecx, [ebp + 0x10]
call fcn.0043f295
mov edx, dword [0x470a10]
mov dword [ebp + 8], edx
lea eax, [ebp - 0x184]
lea ecx, [ebp - 0x288]
push eax
push ecx
lea edx, [ebp + 8]
push 0x46e098
push edx
mov byte [ebp - 4], 6
call fcn.0043620d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add esp, 0x10
inc esi
lea edx, [ebp + 0xc]
push eax
push ecx
push esi
push 0x79
push edx
call fcn.00436220
mov eax, dword [ebp + 0xc]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.00407b20
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.0043f295
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0043f295
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043f295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f295
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f295
mov eax, 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x470a10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x60]
push esi
push edx
mov byte [ebp - 4], 7
call fcn.00405fe0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.0043f3ce
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 7
call fcn.0043f295
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.0043f7b6
cmp eax, 0xffffffff
je 0x408473
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x64]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x18]
call fcn.00435d1b
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0043f3ce
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.0043f295
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.0043f7b6
cmp eax, 0xffffffff
jne 0x408435
mov eax, dword [0x470a10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push eax
push 0x46d128
push ecx
mov byte [ebp - 4], 0xc
call fcn.0043620d
mov edx, dword [ebp - 0x24]
add esp, 0xc
xor esi, esi
mov eax, dword [edx - 8]
test eax, eax
jle 0x408513
lea edi, [esi + 1]
lea eax, [ebp - 0x68]
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.00435d97
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push ecx
push 0x46d128
push edx
mov byte [ebp - 4], 0xd
call fcn.0043620d
add esp, 0xc
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.0043f295
mov eax, dword [ebp - 0x24]
cmp byte [esi + eax], 0x5c
jne 0x408506
mov ecx, dword [ebp - 0x28]
push 0
push ecx
call fcn.0041ffcf
add esp, 8
cmp eax, 0xffffffff
jne 0x408506
mov edx, dword [ebp - 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40856f
mov eax, dword [ebp - 0x24]
mov esi, edi
cmp esi, dword [eax - 8]
jl 0x4084a6
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
push str.temp
push edx
push 0x46e1b8
push eax
lea ecx, [ebp - 0x1c]
push str._s_s_s_s
push ecx
call fcn.0043620d
add esp, 0x18
lea ecx, [ebp - 0x54]
call fcn.004405ce
mov edx, dword [ebp - 0x1c]
push 0
push 0x1001
push edx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xe
call fcn.00440780
test eax, eax
jne 0x4085ef
push str._Error__File_Open_Failed
call fcn.00404400
add esp, 4
jmp 0x408826
mov ecx, dword [ebp - 0x28]
push ecx
push str._Error__DownloadFile_Rountine_:_Cant_Create_Directory___s__
call fcn.00404400
add esp, 8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0043f295
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0043f295
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0043f295
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0043f295
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043f295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f295
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f295
mov eax, 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x1c]
push 0
push 0
lea eax, [ebp - 0x44]
push 0
push eax
push ecx
call fcn.004205df
add esp, 0x14
lea edx, [ebp - 0x14]
push 0x7a
push edx
call fcn.00436220
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, ebx
push eax
call fcn.00407af0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
push ecx
inc eax
push edx
push eax
lea ecx, [ebp - 0x14]
push 0x79
push ecx
call fcn.00436220
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.00407b20
mov eax, dword [ebx + 8]
cmp byte [eax + 0xf4], 1
jne 0x4086cc
mov ecx, dword [0x470a10]
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x2c]
push 0x8a
push edx
mov byte [ebp - 4], 0xf
call fcn.00436220
mov eax, dword [ebp - 0x2c]
add esp, 8
push 4
push 0x46e5dc
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4086b6
push str._Warning__Program_Stop_by_User
call fcn.00404400
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.0044099b
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
call fcn.0043f295
jmp 0x40891a
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
mov byte [edx + 0xf4], 0
call fcn.0043f295
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x1288]
push 0x1000
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4087c7
add edi, eax
mov ecx, ebx
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv dword [ebp - 0x58]
push eax
call fcn.00407ac0
lea edx, [ebp - 0x84]
push 0
lea eax, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [ebp - 0x6c]
test eax, eax
ja 0x40878e
jb 0x408731
cmp dword [ebp - 0x70], 0x1000
jae 0x40878e
mov edx, dword [0x470a10]
mov dword [ebp + 0x10], edx
movsx eax, byte [ebp - 0x44]
push eax
lea ecx, [ebp + 0x10]
push 0x8b
push ecx
mov byte [ebp - 4], 0x10
call fcn.00436220
mov edx, dword [ebp + 0x10]
add esp, 0xc
push 0
push 0
push edx
call fcn.00446361
lea ecx, [ebp - 0x54]
call fcn.0044099b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str._Error__Hard_Disk_Full._Update_File_Write_Failed
call fcn.00404400
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xe
call fcn.0043f295
jmp 0x40891a
lea ecx, [ebp - 0x78]
call fcn.0044054d
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x1288]
push eax
push ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x12
call fcn.004408d7
mov dword [ebp - 4], 0xe
call fcn.0044058b
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x408644
mov esi, dword [ebp - 0x34]
lea ecx, [ebp - 0x54]
call fcn.0044099b
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea edx, [ebp - 0x14]
push 0x7b
push edx
call fcn.00436220
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, ebx
push eax
call fcn.00407af0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x38]
push edx
lea esi, [ecx + 1]
push eax
push esi
lea ecx, [ebp - 0x14]
push 0x79
push ecx
call fcn.00436220
mov edx, dword [ebp - 0x14]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.00407b20
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00408a10
test eax, eax
jne 0x40888e
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xc
call fcn.004406c3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0043f295
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0043f295
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0043f295
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0043f295
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043f295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f295
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f295
jmp 0x4089e1
mov ecx, dword [ebp - 0x18]
push ecx
push str.UnZip_Success_:__s
call fcn.00404400
add esp, 8
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xc
call fcn.004406c3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0043f295
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0043f295
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0043f295
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0043f295
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
jmp 0x408231
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xc
call fcn.004406c3
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.0043f295
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0043f295
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.0043f295
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.0043f295
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043f295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f295
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f295
mov eax, 0x11
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0043f295
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0043f295
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f295
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.Update_File_URL_Not_Good.___Mgr_DownloadFile__
call fcn.00404400
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc