Function at 0x423425
Capabilities:
Check http status code
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 0x48d6f3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10434
call fcn.0046f610
mov eax, dword [0x4bc760]
xor eax, esp
mov dword [esp + 0x10430], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc760]
xor eax, esp
push eax
lea eax, [esp + 0x10448]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
call fcn.0043d27f
mov edi, eax
pop ecx
mov dword [esp + 0x24], edi
and dword [esp + 0x10450], ebx
test edi, edi
je 0x4234c1
push ecx
lea ecx, [esi + 0x28]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004110b0
lea eax, [esp + 0x44]
mov byte [esp + 0x10450], 1
inc ebx
mov ecx, edi
push eax
mov dword [esp + 0x24], ebx
call fcn.0040fed4
mov edi, eax
jmp 0x4234c3
xor edi, edi
or dword [esp + 0x10450], 0xffffffff
test bl, 1
je 0x4234d9
lea ecx, [esp + 0x44]
call fcn.00411302
lea eax, [esp + 0xfc]
mov ecx, edi
push eax
call fcn.00410070
lea eax, [esp + 0x130]
mov dword [esp + 0x10450], 3
push eax
mov ecx, edi
call fcn.00410050
push 0xc
mov byte [esp + 0x10454], 4
call fcn.0043d27f
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x10450], 5
test eax, eax
je 0x423533
lea ecx, [esp + 0xfc]
push ecx
mov ecx, eax
call fcn.0040fed4
jmp 0x423535
xor eax, eax
mov ecx, eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x10450], 4
call fcn.00410214
push 0x104
lea eax, [esp + 0x238]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x234]
lea esi, [ebx + 0x28]
mov ecx, esi
call fcn.0040edbc
test al, al
je 0x4235d8
push 0x4a4a74
lea edx, [esp + 0x118]
lea ecx, [esp + 0x30]
call fcn.00405711
pop ecx
lea ecx, [esp + 0x148]
mov byte [esp + 0x10450], 6
push ecx
mov edx, eax
lea ecx, [esp + 0xd0]
call fcn.0040ed62
pop ecx
push eax
mov ecx, esi
call fcn.00404f0f
push 0
push 1
lea ecx, [esp + 0xd4]
call fcn.0040513f
push 0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x10458], 4
call fcn.0040513f
cmp dword [esi + 0x14], 8
jb 0x4235e2
mov eax, dword [esi]
jmp 0x4235e4
mov eax, esi
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x42366e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0xa8]
call fcn.004229e7
push eax
mov edx, str.Unable_to_create_file._Error:
mov byte [esp + 0x10454], 7
lea ecx, [esp + 0x94]
call fcn.0041c839
mov byte [esp + 0x10454], 8
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x4a4a7c
call fcn.0041a308
pop ecx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x10454], 9
call fcn.00422a2e
push 0x4b8a2c
lea eax, [esp + 0x48]
push eax
call fcn.0046ec6e
and dword [esp + 0x20], 0
and dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0xffff
lea eax, [esp + 0x444]
push eax
mov eax, dword [esp + 0x34]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x423afa
and dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push 0
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x448]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add ecx, eax
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x20], ecx
test edx, edx
je 0x4236ee
cmp dword [ebx + 0x24], 0
je 0x4236ee
push dword [ebx + 0x5c]
push ecx
push dword [ebp + 0xc]
push dword [ebx + 0x24]
call edx
mov eax, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
jne 0x423678
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42370e
mov ecx, edi
call fcn.004037d4
push edi
call fcn.0043d2b5
pop ecx
mov edi, dword [esp + 0x14]
test edi, edi
je 0x423724
mov ecx, edi
call fcn.004037d4
push edi
call fcn.0043d2b5
pop ecx
mov edi, dword [esp + 0x28]
push edi
call fcn.00422a76
cmp eax, 0xffffffff
je 0x423a91
cmp eax, 0x190
jge 0x423a2e
cmp byte [ebx + 0x59], 0
je 0x4239f0
push edi
lea eax, [esp + 0x30]
push eax
call fcn.00422ab1
mov edi, str.application_octet_stream
mov byte [esp + 0x10450], 0x13
push edi
call fcn.00403def
pop ecx
push eax
xor ebx, ebx
lea ecx, [esp + 0x30]
push ebx
push edi
call fcn.0040e3d4
cmp eax, 0xffffffff
jne 0x4239e4
mov edi, str.application_exe
push edi
call fcn.00403def
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x38]
call fcn.0040e3d4
cmp eax, 0xffffffff
jne 0x4239e4
mov edi, str.application_x_msdownload
push edi
call fcn.00403def
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x38]
call fcn.0040e3d4
cmp eax, 0xffffffff
jne 0x4239e4
mov edi, str.application_x_msdos_program
push edi
call fcn.00403def
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x38]
call fcn.0040e3d4
cmp eax, 0xffffffff
jne 0x4239e4
mov edi, str.application_x_msi
push edi
call fcn.00403def
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x38]
call fcn.0040e3d4
cmp eax, 0xffffffff
jne 0x4239e4
mov edi, str.application_x_dosexec
push edi
call fcn.00403def
pop ecx
push eax
push ebx
push edi
lea ecx, [esp + 0x38]
call fcn.0040e3d4
cmp eax, 0xffffffff
jne 0x4239e4
push ecx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1a0]
call fcn.004110b0
push eax
mov edx, str.Wrong_content_type:
mov byte [esp + 0x10454], 0x14
lea ecx, [esp + 0xd0]
call fcn.0040ef09
pop ecx
lea ecx, [esp + 0x198]
mov byte [esp + 0x10450], 0x16
call fcn.00411302
cmp dword [esi + 0x14], 8
mov dword [esp + 0x14], ebx
jb 0x423874
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 edi, eax
lea eax, [esp + 0x14]
push ebx
push eax
push 0x64
lea eax, [esp + 0x1d8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
dec eax
cmp eax, 0x63
ja 0x4239b8
push 0x64
pop edx
lea ecx, [esp + 0xa8]
call fcn.00405e4d
mov esi, eax
mov edx, 0x283d
mov byte [esp + 0x10450], 0x17
lea ecx, [esp + 0x164]
call fcn.00410ea9
push esi
mov edx, eax
mov byte [esp + 0x10454], 0x18
lea ecx, [esp + 0x94]
call fcn.004244b3
mov byte [esp + 0x10454], 0x19
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], str._bytes_of_response_is_
call fcn.0041a308
pop ecx
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x10450], 0x1a
push ecx
mov edx, eax
lea ecx, [esp + 0x48]
call fcn.0041a308
mov byte [esp + 0x10454], 0x1b
lea ecx, [esp + 0xe8]
mov edx, eax
mov dword [esp], 0x4a44dc
call fcn.0041a308
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1045c], 0x1c
call fcn.0040e28c
xor esi, esi
lea ecx, [esp + 0xe4]
push ebx
inc esi
push esi
call fcn.00403790
push ebx
push esi
lea ecx, [esp + 0x4c]
call fcn.00403790
push ebx
push esi
lea ecx, [esp + 0x80]
call fcn.00403790
push ebx
push esi
lea ecx, [esp + 0x98]
call fcn.00403790
lea ecx, [esp + 0x164]
call fcn.00411302
push ebx
push esi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x10458], 0x16
call fcn.00403790
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0xac]
call fcn.00422a2e
push 0x4b8a2c
lea eax, [esp + 0xac]
jmp 0x423668
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040513f
lea ecx, [esp + 0x130]
call fcn.00411302
lea ecx, [esp + 0xfc]
call fcn.00411302
mov ecx, dword [esp + 0x10448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10430]
xor ecx, esp
call fcn.0046a2b4
mov esp, ebp
pop ebp
ret 0xc
mov edx, eax
lea ecx, [esp + 0xa8]
call fcn.00405e4d
push eax
mov edx, str.Server_internal_error:
mov byte [esp + 0x10454], 0x10
lea ecx, [esp + 0x94]
call fcn.0041c839
mov byte [esp + 0x10454], 0x11
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x4a4a7c
call fcn.0041a308
pop ecx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x10454], 0x12
call fcn.00422a2e
push 0x4b8a2c
lea eax, [esp + 0x48]
jmp 0x423668
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0xa8]
call fcn.004229e7
push eax
mov edx, str.Unable_to_get_HTTP_status:
mov byte [esp + 0x10454], 0xd
lea ecx, [esp + 0x94]
call fcn.0041c839
mov byte [esp + 0x10454], 0xe
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x4a4a7c
call fcn.0041a308
pop ecx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x10454], 0xf
call fcn.00422a2e
push 0x4b8a2c
lea eax, [esp + 0x48]
jmp 0x423668
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 8
jb 0x423b0c
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 + 0xa8]
call fcn.004229e7
push eax
mov edx, str.Unable_to_recieve_data_from_server._Error:
mov byte [esp + 0x10454], 0xa
lea ecx, [esp + 0x94]
call fcn.0041c839
mov byte [esp + 0x10454], 0xb
lea ecx, [esp + 0x7c]
mov edx, eax
mov dword [esp], 0x4a4a7c
call fcn.0041a308
pop ecx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x10454], 0xc
call fcn.00422a2e
push 0x4b8a2c
lea eax, [esp + 0x48]
jmp 0x423668