Function at 0x42403c
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 0x4875f3
mov eax, dword fs:[0]
push eax
sub esp, 0x960
mov eax, dword [0x4bb760]
xor eax, esp
mov dword [esp + 0x958], eax
push ebx
push esi
push edi
mov eax, dword [0x4bb760]
xor eax, esp
push eax
lea eax, [esp + 0x970]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0x28]
mov edx, esi
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xa8]
call fcn.0042a674
cmp dword [eax + 0x14], 8
jb 0x42409e
mov eax, dword [eax]
xor ebx, ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
push ebx
push 1
lea ecx, [esp + 0xb0]
call fcn.0040d2b7
cmp dword [esi + 0x14], 8
jb 0x4240c2
mov eax, dword [esi]
jmp 0x4240c4
mov eax, esi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
jne 0x424146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00423716
and dword [esp + 0x978], ebx
lea ecx, [esp + 0x90]
push eax
mov edx, str.Unable_to_create_file._Error:
call fcn.0041b614
mov byte [esp + 0x97c], 1
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a3bc0
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 2
call fcn.0042375d
push 0x4b7e18
lea eax, [esp + 0x40]
push eax
call fcn.0046a929
and dword [esp + 0x10], 0
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x800
lea eax, [esp + 0x16c]
push eax
mov eax, dword [esp + 0x24]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42454e
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push 0
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], eax
cmp dword [edi + 0x20], 0
je 0x4241cb
cmp dword [edi + 0x24], 0
je 0x4241cb
sub esp, 0x18
lea eax, [edi + 0x5c]
mov ecx, esp
push eax
call fcn.004133d7
push dword [esp + 0x28]
push dword [ebp + 0xc]
push dword [edi + 0x24]
call dword [edi + 0x20]
mov eax, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jne 0x424150
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004237e7
cmp eax, 0xffffffff
je 0x4244e5
cmp eax, 0x190
jge 0x424482
cmp byte [edi + 0x59], 0
je 0x42445c
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.00423822
mov edi, str.application_octet_stream
mov dword [esp + 0x978], 0xc
push edi
call fcn.0040c2ec
pop ecx
push eax
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
push edi
call fcn.00413eff
cmp eax, 0xffffffff
jne 0x424450
mov edi, str.application_exe
push edi
call fcn.0040c2ec
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.00413eff
cmp eax, 0xffffffff
jne 0x424450
mov edi, str.application_x_msdownload
push edi
call fcn.0040c2ec
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.00413eff
cmp eax, 0xffffffff
jne 0x424450
mov edi, str.application_x_msdos_program
push edi
call fcn.0040c2ec
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.00413eff
cmp eax, 0xffffffff
jne 0x424450
mov edi, str.application_x_msi
push edi
call fcn.0040c2ec
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.00413eff
cmp eax, 0xffffffff
jne 0x424450
lea edx, [esp + 0x24]
lea ecx, [esp + 0xa8]
call fcn.0042bab0
push eax
mov edx, str.Wrong_content_type:
mov byte [esp + 0x97c], 0xd
lea ecx, [esp + 0xc4]
call fcn.0041b614
pop ecx
push ebx
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x980], 0xf
call fcn.0040d225
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], ebx
jb 0x424309
mov esi, dword [esi]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [esp + 0x10]
push ebx
push eax
push 0x64
lea eax, [esp + 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
dec eax
cmp eax, 0x63
ja 0x424424
push 0x64
pop edx
lea ecx, [esp + 0x78]
call fcn.0040e9a5
push eax
mov edx, str.._First
mov byte [esp + 0x97c], 0x10
lea ecx, [esp + 0x94]
call fcn.0041b614
mov byte [esp + 0x97c], 0x11
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], str._bytes_of_response_is_
call fcn.0041b5ba
lea ecx, [esp + 0x100]
mov byte [esp + 0x97c], 0x12
push ecx
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.0041b5ba
push 0x4a35e4
mov edx, eax
mov byte [esp + 0x984], 0x13
lea ecx, [esp + 0xe4]
call fcn.0041b5ba
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x984], 0x14
call fcn.00413e09
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x98]
call fcn.0040d225
push ebx
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x980], 0xf
call fcn.0040d225
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xdc]
call fcn.0042375d
push 0x4b7e18
lea eax, [esp + 0xdc]
jmp 0x424140
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.0040d2b7
mov ecx, dword [esp + 0x970]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x958]
xor ecx, esp
call fcn.00465956
mov esp, ebp
pop ebp
ret 8
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.0040e9a5
push eax
mov edx, str.Server_internal_error:
mov dword [esp + 0x97c], 9
lea ecx, [esp + 0x94]
call fcn.0041b614
mov byte [esp + 0x97c], 0xa
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a3bc0
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 0xb
call fcn.0042375d
push 0x4b7e18
lea eax, [esp + 0x40]
jmp 0x424140
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00423716
push eax
mov edx, str.Unable_to_get_HTTP_status:
mov dword [esp + 0x97c], 6
lea ecx, [esp + 0x94]
call fcn.0041b614
mov byte [esp + 0x97c], 7
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a3bc0
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 8
call fcn.0042375d
push 0x4b7e18
lea eax, [esp + 0x40]
jmp 0x424140
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x42455d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00423716
push eax
mov edx, str.Unable_to_recieve_data_from_server._Error:
mov dword [esp + 0x97c], 3
lea ecx, [esp + 0x94]
call fcn.0041b614
mov byte [esp + 0x97c], 4
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a3bc0
call fcn.0041b5ba
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 5
call fcn.0042375d
push 0x4b7e18
lea eax, [esp + 0x40]
jmp 0x424140