Function at 0x4229a0
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, 0x2d04
call fcn.00423a90
mov eax, dword [0x475010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2d04]
push esi
push eax
call fcn.00418340
lea eax, [ebp - 0x184]
push eax
call fcn.0040d860
lea eax, [ebp - 0x388]
push eax
call fcn.00414510
push 0x14a4
lea eax, [ebp - 0x182c]
push 0
push eax
call fcn.00424dd0
push 0x478070
push 0x477f68
push str._s__s
lea eax, [ebp - 0x1828]
mov dword [ebp - 0x183c], 0x52335345
push 0x3f
push eax
mov dword [ebp - 0x1838], 0x4350
mov dword [ebp - 0x1834], 0xb40001
mov dword [ebp - 0x1830], 1
call fcn.00422e00
push ebx
push 0x469d6c
lea eax, [ebp - 0x1788]
mov dword [ebp - 0x1790], 0x14
push 0x13
push eax
call fcn.00422e00
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1788]
push 0x14
push eax
call fcn.0041b980
add esp, 0x4c
test eax, eax
je 0x422a7b
mov esi, 0xfffffffc
jmp 0x422d51
push 0xb
push str.TinyES3sign
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x184]
push fcn.00414390
push eax
call fcn.0040dcb0
add esp, 0x14
test eax, eax
je 0x422aab
mov esi, 0xfffffffb
jmp 0x422d51
push 0
lea eax, [ebp - 0x2d04]
push 0x478388
push eax
call fcn.00419230
add esp, 0xc
test eax, eax
je 0x422acf
mov esi, 0xfffffffa
jmp 0x422d51
lea eax, [ebp - 0x184]
mov dword [ebp - 0x2cf4], 0x57
push eax
push 0x40d890
lea eax, [ebp - 0x2cf4]
push eax
lea eax, [ebp - 0x17e7]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2d04]
push 6
push eax
call fcn.004183a0
add esp, 0x20
test eax, eax
je 0x422b18
mov esi, 0xfffffff9
jmp 0x422d51
mov eax, dword [ebp - 0x2cf4]
cmp eax, 0x57
jbe 0x422b2d
mov esi, 0xfffffff8
jmp 0x422d51
push edi
push 0
push 2
push 2
mov byte [ebp - 0x17e8], al
or esi, 0xffffffff
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, esi
je 0x422bf1
push 4
lea eax, [ebp - 0x2cf8]
mov dword [ebp - 0x2cf8], 0x3e8
push eax
push 0x1006
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0xc]
push 0xd432
mov dword [ebp - 0x30], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x32], ax
mov eax, 2
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
push 0x10
push eax
mov eax, dword [ebp - 0x1790]
push 0
add eax, 0xb4
push eax
lea eax, [ebp - 0x183c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2cfc], 0x10
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x14b4
lea eax, [ebp - 0x2cf0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, 0xffffffff
je 0x422bf1
cmp esi, 0xb4
sbb esi, esi
test esi, esi
jne 0x422d43
mov esi, dword [ebp - 0x2c40]
lea eax, [esi + 7]
cmp eax, 7
ja case.0x422c07.7
jmp dword [eax*4 + 0x422d8c]
push str._nPublic_key_successfully_received._n
call fcn.0040b9b0
add esp, 4
jmp 0x422c7c
push esi
push str._nAn_internal_error_has_occurred:__d_n
call fcn.0040b9b0
add esp, 8
jmp 0x422d50
push str._nError__the_encrypted_keystore_is_currently_still_locked._n
jmp 0x422d48
push ebx
push str._nError__slot___s__not_available._n
call fcn.0040b9b0
add esp, 8
jmp 0x422d50
lea eax, [ebp - 0x1828]
push eax
push str._nError__user___s__not_available._n
call fcn.0040b9b0
add esp, 8
jmp 0x422d50
push esi
push str._nAn_internal_error_has_occurred:__d_n
call fcn.0040b9b0
add esp, 8
test esi, esi
jne 0x422d50
lea edi, [ebp - 0x2c3c]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x422c85
push ebx
push str._s.pub
push 0x103
push 0x477e50
sub edi, ecx
call fcn.00422e00
push ebx
push 0x469d6c
push 0x14
push 0x478618
call fcn.00422e00
push edi
lea eax, [ebp - 0x2c3c]
push eax
push 0x47862c
call fcn.00424f30
push 0x468860
push 0x477e50
call fcn.00440ffa
mov ebx, eax
add esp, 0x34
test ebx, ebx
jne 0x422cf3
push 0x477e50
push str.Error__could_not_create___s__n
call fcn.0040b9b0
add esp, 8
jmp 0x422d50
push ebx
push edi
lea eax, [ebp - 0x2c3c]
push 1
push eax
call fcn.0042f523
add esp, 0x10
push ebx
cmp eax, edi
je 0x422d2a
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 0x422d50
call fcn.00440c48
push 0x477e50
push str.__s__successfully_written._n
call fcn.0040b9b0
add esp, 0xc
jmp 0x422d50
push str._nError__no_response_from_server._n
call fcn.0040b9b0
add esp, 4
pop edi
lea eax, [ebp - 0x2d04]
push eax
call fcn.00418270
lea eax, [ebp - 0x184]
push eax
call fcn.0040d820
lea eax, [ebp - 0x388]
push eax
call fcn.00414350
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00423606
mov esp, ebp
pop ebp
ret