Function at 0x4224f0
Capabilities:
Create udp socket
Delete file
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d18
call fcn.00423a90
mov eax, dword [0x475010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movq xmm0, qword [str.root_of_trust]
mov dword [ebp - 0x2d10], eax
mov eax, dword [0x46b0a0]
push ebx
mov dword [ebp - 0xc], eax
mov ax, word [0x46b0a4]
push esi
mov esi, dword [ebp + 0x10]
mov word [ebp - 8], ax
lea eax, [ebp - 0x2d18]
push edi
push eax
movq qword [ebp - 0x14], xmm0
call fcn.00418340
lea eax, [ebp - 0x194]
push eax
call fcn.0040d860
lea eax, [ebp - 0x398]
push eax
call fcn.00414510
push 0x14a4
lea eax, [ebp - 0x183c]
push 0
push eax
call fcn.00424dd0
push 0x478070
push 0x477f68
push str._s__s
lea eax, [ebp - 0x1838]
mov dword [ebp - 0x184c], 0x52335345
push 0x3f
push eax
mov dword [ebp - 0x1848], 0x4350
mov dword [ebp - 0x1844], 0xb40001
mov dword [ebp - 0x1840], 0
call fcn.00422e00
lea eax, [ebp - 0x14]
mov dword [ebp - 0x17a0], 0x34
push eax
push 0x469d6c
lea eax, [ebp - 0x1798]
push 0x13
push eax
call fcn.00422e00
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x1784]
push 0
push eax
push edi
push esi
call fcn.0041b980
add esp, 0x4c
test eax, eax
je 0x4225f6
mov ebx, 0xfffffffd
jmp 0x422943
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1798]
push 0x34
push eax
call fcn.0041b980
add esp, 0x10
test eax, eax
je 0x42261b
mov ebx, 0xfffffffc
jmp 0x422943
push 0xb
push str.TinyES3sign
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x194]
push fcn.00414390
push eax
call fcn.0040dcb0
add esp, 0x14
test eax, eax
je 0x42264b
mov ebx, 0xfffffffb
jmp 0x422943
push 0
lea eax, [ebp - 0x2d18]
push 0x478388
push eax
call fcn.00419230
add esp, 0xc
test eax, eax
je 0x42266f
mov ebx, 0xfffffffa
jmp 0x422943
lea eax, [ebp - 0x194]
mov dword [ebp - 0x2d04], 0x57
push eax
push 0x40d890
lea eax, [ebp - 0x2d04]
push eax
lea eax, [ebp - 0x17f7]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2d18]
push 6
push eax
call fcn.004183a0
add esp, 0x20
test eax, eax
je 0x4226b8
mov ebx, 0xfffffff9
jmp 0x422943
mov eax, dword [ebp - 0x2d04]
cmp eax, 0x57
jbe 0x4226cd
mov ebx, 0xfffffff8
jmp 0x422943
push 0
push 2
push 2
mov byte [ebp - 0x17f8], al
or ebx, 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, ebx
je 0x422790
push 4
lea eax, [ebp - 0x2d08]
mov dword [ebp - 0x2d08], 0x3e8
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0xc]
push 0xd432
mov dword [ebp - 0x40], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x42], ax
mov eax, 2
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x44]
push 0x10
push eax
mov eax, dword [ebp - 0x17a0]
push 0
add eax, 0xb4
push eax
lea eax, [ebp - 0x184c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [ebp - 0x2d0c]
mov dword [ebp - 0x2d0c], 0x10
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0x14b4
lea eax, [ebp - 0x2d00]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
push esi
mov ebx, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
je 0x422790
cmp ebx, 0xb4
sbb ebx, ebx
test ebx, ebx
jne 0x422936
mov ebx, dword [ebp - 0x2c50]
lea eax, [ebx + 7]
cmp eax, 7
ja case.0x4227a6.7
jmp dword [eax*4 + 0x422980]
push str.Signature_successfully_created._n
call fcn.0040b9b0
add esp, 4
jmp 0x42281e
push ebx
push str._nAn_internal_error_has_occurred:__d_n
call fcn.0040b9b0
add esp, 8
jmp 0x422943
push str._nError__the_encrypted_keystore_is_currently_still_locked._n
jmp 0x42293b
lea eax, [ebp - 0x14]
push eax
push str._nError__slot___s__not_available._n
call fcn.0040b9b0
add esp, 8
jmp 0x422943
lea eax, [ebp - 0x1838]
push eax
push str._nError__user___s__not_available._n
call fcn.0040b9b0
add esp, 8
jmp 0x422943
push ebx
push str._nAn_internal_error_has_occurred:__d_n
call fcn.0040b9b0
add esp, 8
test ebx, ebx
jne 0x422943
push 0x70
push 0
push 0x4785a8
call fcn.00424dd0
lea eax, [ebp - 0x2c4c]
mov dword [0x478598], 0x594e4954
push eax
push 0x469d6c
push 0x13
push 0x4785a8
mov dword [0x47859c], 0x335345
mov dword [0x4785a0], 0x800001
mov dword [0x4785a4], edi
call fcn.00422e00
mov al, byte [ebp - 0x2c38]
lea esi, [ebp - 0x2c37]
mov byte [0x4785bc], al
mov ecx, 0x15
mov edi, 0x4785bd
rep movsd dword es:[edi], dword [esi]
push 0x7c
push 0x478598
push 1
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.00401000
push dword [ebp - 0x2d10]
mov dword [0x478614], eax
push str._s.es3
push 0x103
push 0x477e50
call fcn.00422e00
push 0x468860
push 0x477e50
call fcn.00440ffa
mov esi, eax
add esp, 0x40
test esi, esi
jne 0x4228e1
push 0x477e50
push str.Error__could_not_create___s__n
call fcn.0040b9b0
add esp, 8
jmp 0x422943
push esi
push 0x180
push 1
push 0x478598
call fcn.0042f523
add esp, 0x10
push esi
cmp eax, 0x180
je 0x42291d
call fcn.00440c48
push str.Error__data_could_not_be_written_n
call fcn.0040b9b0
add esp, 8
push 0x477e50
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x422943
call fcn.00440c48
push 0x477e50
push str.__s__successfully_written._n
call fcn.0040b9b0
add esp, 0xc
jmp 0x422943
push str._nError__no_response_from_server._n
call fcn.0040b9b0
add esp, 4
lea eax, [ebp - 0x2d18]
push eax
call fcn.00418270
lea eax, [ebp - 0x194]
push eax
call fcn.0040d820
lea eax, [ebp - 0x398]
push eax
call fcn.00414350
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00423606
mov esp, ebp
pop ebp
ret