Function at 0x404230
Capabilities:
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2414]
mov eax, 0x2414
call fcn.0040c600
push 0xffffffffffffffff
push 0x416a98
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x41e5f4]
xor eax, ebp
mov dword [ebp + 0x2410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x2420]
mov esi, dword [ebp + 0x2424]
mov edi, dword [ebp + 0x241c]
xor ebx, ebx
push 0x206
lea ecx, [ebp + 0x220a]
push ebx
push ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], 0x50
mov word [ebp + 0x2208], bx
call fcn.0040ba20
push 0x206
lea edx, [ebp + 0x2002]
push ebx
push edx
mov word [ebp + 0x2000], bx
call fcn.0040ba20
add esp, 0x18
cmp esi, ebx
je 0x4042d8
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push ebx
mov ecx, esi
call edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x2000]
push ecx
lea edx, [ebp + 0x2208]
push edx
push edi
call fcn.00401450
test eax, eax
jne 0x40432d
cmp esi, ebx
je 0x404304
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push 0xfffffffffffffffe
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2410]
xor ecx, ebp
call fcn.0040ba0c
add ebp, 0x2414
mov esp, ebp
pop ebp
ret 0xc
cmp esi, ebx
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], ebx
je 0x404347
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push 1
mov ecx, esi
call edx
push ebx
push ebx
push ebx
push ebx
push str.INetHttpClient
lea ecx, [ebp - 0x4c]
call fcn.00403e80
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
push ebx
push 3
push ebx
push ebx
push eax
lea ecx, [ebp + 0x2208]
push ecx
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404020
mov dword [ebp - 0x34], 0x418614
cmp esi, ebx
mov byte [ebp - 4], 2
je 0x404393
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push 2
mov ecx, esi
call edx
mov ecx, dword [ebp - 0x30]
push 0x400000
push ebx
push ebx
push 0x418784
lea eax, [ebp + 0x2000]
push eax
push 0x41877c
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404170
mov edx, dword [ebp - 0x20]
push ebx
push ebx
push 0xffffffffffffffff
push ebx
push edx
mov byte [ebp - 4], 3
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4043f1
mov eax, dword [ebp - 0x20]
push str.Failed_to_send_http_request
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00403c40
add esp, 0xc
push 0x41b74c
lea edx, [ebp - 0x80]
push edx
call fcn.0040ba9a
cmp esi, ebx
je 0x404401
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ebx
push 3
mov ecx, esi
call edx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 4
call fcn.00404120
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
jmp 0x40442e
mov edi, dword [ebp - 0x28]
push edi
call fcn.004011d0
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x40447b
push 0x418760
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00403c40
add esp, 0xc
push 0x41b74c
lea ecx, [ebp - 0x98]
push ecx
call fcn.0040ba9a
push 0x1fff
lea edx, [ebp + 1]
push ebx
push edx
mov byte [ebp], 0
call fcn.0040ba20
add esp, 0xc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], ebx
call fcn.00404120
lea esp, [esp]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x40]
push eax
push 0x2000
lea ecx, [ebp]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4044e3
mov eax, dword [ebp - 0x20]
push 0x2000
push 0x418618
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00403c40
add esp, 0x10
push 0x41b74c
lea edx, [ebp - 0x68]
push edx
call fcn.0040ba9a
mov edi, dword [ebp - 0x40]
test edi, edi
je 0x404569
test esi, esi
je 0x404531
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
test al, al
je 0x404531
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0
push 0xffffffffffffffff
mov ecx, esi
call edx
mov eax, dword [ebp - 0x20]
push 0x418748
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00403c40
add esp, 0xc
push 0x41b74c
lea edx, [ebp - 0xb0]
push edx
call fcn.0040ba9a
mov edx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x3c]
push eax
push edi
lea ecx, [ebp]
push ecx
push edx
add ebx, edi
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x4044a0
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
mov edx, dword [eax]
push ecx
push ebx
mov ecx, esi
call edx
jmp 0x4044a0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp ebx, edi
ja 0x4045d5
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, edi
je 0x404593
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
push 0xfffffffffffffffe
mov ecx, esi
call eax
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, vtable.CInternetHandle.0
mov dword [ebp - 0x24], ebx
je 0x4045ae
push eax
call esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x30]
cmp eax, edi
mov dword [ebp - 0x34], ebx
je 0x4045be
push eax
call esi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x48]
cmp eax, edi
mov dword [ebp - 0x4c], ebx
je 0x4045cb
push eax
call esi
mov eax, 1
jmp 0x404306
cmp esi, edi
je 0x4045e5
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
push 4
mov ecx, esi
call eax
mov eax, dword [ebp - 0x20]
cmp eax, edi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, vtable.CInternetHandle.0
mov dword [ebp - 0x24], ebx
je 0x404600
push eax
call esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x30]
cmp eax, edi
mov dword [ebp - 0x34], ebx
je 0x404610
push eax
call esi
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x48]
cmp eax, edi
mov dword [ebp - 0x4c], ebx
je 0x4045cb
push eax
call esi
mov eax, 1
jmp 0x404306