Function at 0x42476f
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 0x487f09
mov eax, dword fs:[0]
push eax
sub esp, 0x960
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x958], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
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.0042adac
cmp dword [eax + 0x14], 8
jb 0x4247d1
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.0040d9e7
cmp dword [esi + 0x14], 8
jb 0x4247f5
mov eax, dword [esi]
jmp 0x4247f7
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 0x424879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00423e49
and dword [esp + 0x978], ebx
lea ecx, [esp + 0x90]
push eax
mov edx, str.Unable_to_create_file._Error:
call fcn.0041bd44
mov byte [esp + 0x97c], 1
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a4d60
call fcn.0041bcea
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 2
call fcn.00423e90
push 0x4b92a8
lea eax, [esp + 0x40]
push eax
call fcn.0046b53e
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 0x424c81
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 0x4248fe
cmp dword [edi + 0x24], 0
je 0x4248fe
sub esp, 0x18
lea eax, [edi + 0x5c]
mov ecx, esp
push eax
call fcn.00413b07
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 0x424883
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00423f1a
cmp eax, 0xffffffff
je 0x424c18
cmp eax, 0x190
jge 0x424bb5
cmp byte [edi + 0x59], 0
je 0x424b8f
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.00423f55
mov edi, str.application_octet_stream
mov dword [esp + 0x978], 0xc
push edi
call fcn.0040ca1c
pop ecx
push eax
xor ebx, ebx
lea ecx, [esp + 0x28]
push ebx
push edi
call fcn.0041462f
cmp eax, 0xffffffff
jne 0x424b83
mov edi, str.application_exe
push edi
call fcn.0040ca1c
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.0041462f
cmp eax, 0xffffffff
jne 0x424b83
mov edi, str.application_x_msdownload
push edi
call fcn.0040ca1c
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.0041462f
cmp eax, 0xffffffff
jne 0x424b83
mov edi, str.application_x_msdos_program
push edi
call fcn.0040ca1c
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.0041462f
cmp eax, 0xffffffff
jne 0x424b83
mov edi, str.application_x_msi
push edi
call fcn.0040ca1c
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x30]
call fcn.0041462f
cmp eax, 0xffffffff
jne 0x424b83
lea edx, [esp + 0x24]
lea ecx, [esp + 0xa8]
call fcn.0042cee2
push eax
mov edx, str.Wrong_content_type:
mov byte [esp + 0x97c], 0xd
lea ecx, [esp + 0xc4]
call fcn.0041bd44
pop ecx
push ebx
push 1
lea ecx, [esp + 0xb0]
mov byte [esp + 0x980], 0xf
call fcn.0040d955
cmp dword [esi + 0x14], 8
mov dword [esp + 0x10], ebx
jb 0x424a3c
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 0x424b57
push 0x64
pop edx
lea ecx, [esp + 0x78]
call fcn.0040f0d5
push eax
mov edx, str.._First
mov byte [esp + 0x97c], 0x10
lea ecx, [esp + 0x94]
call fcn.0041bd44
mov byte [esp + 0x97c], 0x11
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], str._bytes_of_response_is_
call fcn.0041bcea
lea ecx, [esp + 0x100]
mov byte [esp + 0x97c], 0x12
push ecx
mov edx, eax
lea ecx, [esp + 0x44]
call fcn.0041bcea
push 0x4a4784
mov edx, eax
mov byte [esp + 0x984], 0x13
lea ecx, [esp + 0xe4]
call fcn.0041bcea
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x984], 0x14
call fcn.00414539
push ebx
push 1
lea ecx, [esp + 0xe0]
call fcn.0040d955
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.0040d955
push ebx
push 1
lea ecx, [esp + 0x68]
call fcn.0040d955
push ebx
push 1
lea ecx, [esp + 0x98]
call fcn.0040d955
push ebx
push 1
lea ecx, [esp + 0x80]
mov byte [esp + 0x980], 0xf
call fcn.0040d955
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0xdc]
call fcn.00423e90
push 0x4b92a8
lea eax, [esp + 0xdc]
jmp 0x424873
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.0040d9e7
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.00466746
mov esp, ebp
pop ebp
ret 8
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.0040f0d5
push eax
mov edx, str.Server_internal_error:
mov dword [esp + 0x97c], 9
lea ecx, [esp + 0x94]
call fcn.0041bd44
mov byte [esp + 0x97c], 0xa
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a4d60
call fcn.0041bcea
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 0xb
call fcn.00423e90
push 0x4b92a8
lea eax, [esp + 0x40]
jmp 0x424873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x78]
call fcn.00423e49
push eax
mov edx, str.Unable_to_get_HTTP_status:
mov dword [esp + 0x97c], 6
lea ecx, [esp + 0x94]
call fcn.0041bd44
mov byte [esp + 0x97c], 7
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a4d60
call fcn.0041bcea
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 8
call fcn.00423e90
push 0x4b92a8
lea eax, [esp + 0x40]
jmp 0x424873
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x424c90
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.00423e49
push eax
mov edx, str.Unable_to_recieve_data_from_server._Error:
mov dword [esp + 0x97c], 3
lea ecx, [esp + 0x94]
call fcn.0041bd44
mov byte [esp + 0x97c], 4
lea ecx, [esp + 0x64]
mov edx, eax
mov dword [esp], 0x4a4d60
call fcn.0041bcea
pop ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x97c], 5
call fcn.00423e90
push 0x4b92a8
lea eax, [esp + 0x40]
jmp 0x424873