Function at 0x406210
Capabilities:
Create http request
Delete file
Download and write a file
Get common file path
Get file size
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x42e494
call fcn.004279d0
sub esp, 0x158
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x164]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x164]
push 0x103
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x164]
push str._temp_
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x164]
push eax
call fcn.0040836b
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
push 0x32
lea eax, [ebp - 0x60]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x60]
push 0xa
push eax
push edi
call dword [sym.imp.MSVCRT.dll__ltoa]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x164]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
push ebx
push ebx
push ebx
push ebx
push 0x442544
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x4064f6
mov eax, dword [esi + 8]
push ebx
push 0x100
push ebx
push ebx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x40638d
push ebx
push 0x80
push 2
push ebx
push 2
lea eax, [ebp - 0x164]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
je 0x406384
mov esi, 0x5000
mov dword [ebp - 0x10], ebx
push esi
mov dword [ebp - 0x2c], ebx
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
push esi
push eax
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40636f
cmp dword [ebp - 0x10], ebx
je 0x406351
lea eax, [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
push 0x64
push ebx
call fcn.00407e6f
add esp, 0xc
cmp dword [ebp - 0x10], ebx
je 0x40636f
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x14]
jmp 0x406332
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x20]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x1c], ebx
jne 0x4064f6
push 1
pop eax
push ebx
push 0x80
push 3
push ebx
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x164]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x18], edi
je 0x4064f6
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_operatornew
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x4064ed
lea ecx, [ebp - 0x20]
push ebx
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4064e4
cmp esi, dword [ebp - 0x20]
jne 0x4064e4
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov edi, str._CFG_
push edi
push dword [ebp - 0x10]
call esi
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x406458
push str.__CFG_
push eax
call esi
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x2c], eax
je 0x406458
push edi
call sub.MSVCRT.dll_strlen
add dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x2c]
pop ecx
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov byte [edi], bl
call fcn.00401118
mov byte [edi], 0x3c
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
call fcn.00406523
test eax, eax
je 0x4064e4
mov edi, str.__EGMC__
push edi
push dword [ebp - 0x10]
call esi
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
je 0x4064e4
push edi
call sub.MSVCRT.dll_strlen
mov edi, eax
mov eax, dword [ebp + 0xc]
add edi, esi
mov esi, dword [ebp - 0x10]
pop ecx
sub esi, edi
mov ecx, dword [eax]
add esi, dword [ebp - 0x24]
cmp ecx, ebx
je 0x40649d
call fcn.0040130a
jmp 0x40649f
xor eax, eax
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x4064e4
lea ecx, [ebp + 0xc]
push ebx
push ecx
push esi
push edi
push eax
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4064db
cmp esi, dword [ebp + 0xc]
jne 0x4064db
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8