Function at 0x41c2f6
Capabilities:
Check http status code
Create directory
Delete file
Download and write a file
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482139
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10394
call fcn.004656d0
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x10390], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x103a8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x28]
mov edx, edi
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x60]
call fcn.004241a2
cmp dword [eax + 0x14], 8
jb 0x41c35a
mov eax, dword [eax]
xor esi, esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
push esi
push 1
lea ecx, [esp + 0x68]
call fcn.0040224f
push 0x104
lea eax, [esp + 0x198]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x194]
mov ecx, edi
call fcn.0040adb2
test al, al
je 0x41c437
mov edx, edi
lea ecx, [esp + 0x3c]
call fcn.004242b5
mov esi, eax
and dword [esp + 0x103b0], 0
lea ecx, [esp + 0xd8]
mov edx, edi
call fcn.004241a2
push 0x498bf8
mov edx, eax
mov byte [esp + 0x103b4], 1
lea ecx, [esp + 0xc4]
call fcn.00403da6
pop ecx
push esi
mov edx, eax
mov byte [esp + 0x103b4], 2
lea ecx, [esp + 0x64]
call fcn.0040ad8a
pop ecx
push eax
mov ecx, edi
call fcn.004033ae
xor esi, esi
lea ecx, [esp + 0x60]
push esi
push 1
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0xc8]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0xe0]
call fcn.0040224f
or dword [esp + 0x103b0], 0xffffffff
lea ecx, [esp + 0x3c]
push esi
push 1
call fcn.0040224f
cmp dword [edi + 0x14], 8
jb 0x41c441
mov eax, dword [edi]
jmp 0x41c443
mov eax, edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x41c4cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.0041b94b
push eax
mov edx, str.Unable_to_create_file._Error:
mov dword [esp + 0x103b4], 3
lea ecx, [esp + 0xac]
call fcn.00413898
mov byte [esp + 0x103b4], 4
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x498c00
call fcn.0041383e
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x103b4], 5
call fcn.0041b992
push 0x4acc50
lea eax, [esp + 0x40]
push eax
call fcn.00464fbe
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0xffff
lea eax, [esp + 0x3a4]
push eax
mov eax, dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41c923
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push 0
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x3a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], eax
cmp dword [ebx + 0x20], 0
je 0x41c551
cmp dword [ebx + 0x24], 0
je 0x41c551
sub esp, 0x18
lea eax, [ebx + 0x5c]
mov ecx, esp
push eax
call fcn.00409783
push dword [esp + 0x28]
push dword [ebp + 0xc]
push dword [ebx + 0x24]
call dword [ebx + 0x20]
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jne 0x41c4d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
push esi
call fcn.0041ba1c
cmp eax, 0xffffffff
je 0x41c8b7
cmp eax, 0x190
jge 0x41c851
cmp byte [ebx + 0x59], 0
je 0x41c82b
push esi
lea eax, [esp + 0x28]
push eax
call fcn.0041ba57
mov esi, str.application_octet_stream
mov dword [esp + 0x103b0], 0xf
push esi
call fcn.004026a2
pop ecx
push eax
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
push esi
call fcn.00403690
cmp eax, 0xffffffff
jne 0x41c81f
mov esi, str.application_exe
push esi
call fcn.004026a2
pop ecx
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00403690
cmp eax, 0xffffffff
jne 0x41c81f
mov esi, str.application_x_msdownload
push esi
call fcn.004026a2
pop ecx
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00403690
cmp eax, 0xffffffff
jne 0x41c81f
mov esi, str.application_x_msdos_program
push esi
call fcn.004026a2
pop ecx
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00403690
cmp eax, 0xffffffff
jne 0x41c81f
mov esi, str.application_x_msi
push esi
call fcn.004026a2
pop ecx
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00403690
cmp eax, 0xffffffff
jne 0x41c81f
mov esi, str.application_x_dosexec
push esi
call fcn.004026a2
pop ecx
push eax
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00403690
cmp eax, 0xffffffff
jne 0x41c81f
lea edx, [esp + 0x24]
lea ecx, [esp + 0x3c]
call fcn.00426779
push eax
mov edx, str.Wrong_content_type:
mov byte [esp + 0x103b4], 0x10
lea ecx, [esp + 0xf4]
call fcn.00413898
pop ecx
push ebx
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x103b8], 0x12
call fcn.0040220b
cmp dword [edi + 0x14], 8
mov dword [esp + 0x10], ebx
jb 0x41c6aa
mov edi, dword [edi]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [esp + 0x10]
push ebx
push eax
push 0x64
lea eax, [esp + 0x138]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 0x63
ja 0x41c7f3
push 0x64
pop edx
lea ecx, [esp + 0x90]
call fcn.0040471c
mov esi, eax
mov edx, 0x27bb
mov byte [esp + 0x103b0], 0x13
lea ecx, [esp + 0xa8]
call fcn.00426a7f
push esi
mov edx, eax
mov byte [esp + 0x103b4], 0x14
lea ecx, [esp + 0x7c]
call fcn.004137f2
mov byte [esp + 0x103b4], 0x15
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], str._bytes_of_response_is_
call fcn.0041383e
pop ecx
lea ecx, [esp + 0x12c]
mov byte [esp + 0x103b0], 0x16
push ecx
mov edx, eax
lea ecx, [esp + 0xc4]
call fcn.0041383e
mov byte [esp + 0x103b4], 0x17
lea ecx, [esp + 0xdc]
mov edx, eax
mov dword [esp], 0x498644
call fcn.0041383e
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xfc]
mov byte [esp + 0x103bc], 0x18
call fcn.004034fa
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.0040220b
push ebx
push 1
lea ecx, [esp + 0xc8]
call fcn.0040220b
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.0040220b
push ebx
push 1
lea ecx, [esp + 0x80]
call fcn.0040220b
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.0040220b
push ebx
push 1
lea ecx, [esp + 0x98]
mov byte [esp + 0x103b8], 0x12
call fcn.0040220b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x10c]
call fcn.0041b992
push 0x4acc50
lea eax, [esp + 0x10c]
jmp 0x41c4c6
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.0040224f
mov ecx, dword [esp + 0x103a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10390]
xor ecx, esp
call fcn.004600e1
mov esp, ebp
pop ebp
ret 0xc
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.0040471c
push eax
mov edx, str.Server_internal_error:
mov dword [esp + 0x103b4], 0xc
lea ecx, [esp + 0xac]
call fcn.00413898
mov byte [esp + 0x103b4], 0xd
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x498c00
call fcn.0041383e
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x103b4], 0xe
call fcn.0041b992
push 0x4acc50
lea eax, [esp + 0x40]
jmp 0x41c4c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.0041b94b
push eax
mov edx, str.Unable_to_get_HTTP_status:
mov dword [esp + 0x103b4], 9
lea ecx, [esp + 0xac]
call fcn.00413898
mov byte [esp + 0x103b4], 0xa
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x498c00
call fcn.0041383e
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x103b4], 0xb
call fcn.0041b992
push 0x4acc50
lea eax, [esp + 0x40]
jmp 0x41c4c6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], 8
jb 0x41c932
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.0041b94b
push eax
mov edx, str.Unable_to_recieve_data_from_server._Error:
mov dword [esp + 0x103b4], 6
lea ecx, [esp + 0xac]
call fcn.00413898
mov byte [esp + 0x103b4], 7
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x498c00
call fcn.0041383e
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x103b4], 8
call fcn.0041b992
push 0x4acc50
lea eax, [esp + 0x40]
jmp 0x41c4c6