Function at 0x43e1b0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4b841a
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0xa4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0xa64]
mov dword fs:[0], eax
mov edi, dword [esp + 0xa74]
sub esp, 0x1c
mov ebp, ecx
mov ecx, esp
mov dword [esp + 0x30], esp
xor ebx, ebx
push 0xe
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str._tmpdubai.log
mov dword [esp + 0x44], ebp
mov byte [ecx + 4], bl
call fcn.00401e90
lea ecx, [esp + 0x40]
call fcn.0045dc70
push 6
push 1
push 2
mov dword [esp + 0xa78], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x43e260
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov cl, byte [ebp + 0xc]
test cl, cl
je 0x43e2a7
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xf
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x4c1384
mov byte [ecx + 4], bl
call fcn.00401e90
lea ecx, [esp + 0x40]
call fcn.0045dd80
cmp esi, 0xffffffff
je 0x43e664
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x43e664
push 0x1ff
lea edx, [esp + 0x65]
push ebx
push edx
mov byte [esp + 0x6c], bl
call fcn.0048ea70
add esp, 0xc
cmp dword [edi + 0x18], 0x10
lea ebp, [edi + 4]
jb 0x43e2cc
mov eax, dword [ebp]
jmp 0x43e2ce
mov eax, ebp
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
push ecx
push edx
push eax
push 0x4c1360
lea eax, [esp + 0x70]
push 0x200
push eax
call fcn.0048f10b
push ecx
mov ecx, esp
lea eax, [esp + 0x7c]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [ecx + 4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x43e306
sub eax, esi
push eax
lea edx, [esp + 0x80]
push edx
call fcn.00401e90
lea ecx, [esp + 0x40]
call fcn.0045dd80
cmp dword [edi + 0x18], 0x10
jb 0x43e333
mov eax, dword [ebp]
jmp 0x43e335
mov eax, ebp
mov ecx, dword [edi + 0x20]
movzx edx, word [edi + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.0043c3d0
test al, al
jne 0x43e3de
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 0xc]
test cl, cl
je 0x43e390
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c1350
call fcn.00401c70
lea ecx, [esp + 0x40]
call fcn.0045dd80
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x43e664
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x43e664
push 0x1ff
lea edx, [esp + 0x265]
push ebx
push edx
mov byte [esp + 0x26c], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1330
lea eax, [esp + 0x268]
push 0x200
push eax
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
jmp 0x43e369
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jne 0x43e3ed
xor esi, esi
jmp 0x43e3f2
mov esi, dword [ebp + 0x1c]
sub esi, eax
cmp eax, ebx
je 0x43e3fd
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
jne 0x43e402
call fcn.0048ed51
mov eax, dword [ebp + 0x18]
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.0043c530
test al, al
jne 0x43e488
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x43e42e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c1320
jmp 0x43e369
push 0x1ff
lea eax, [esp + 0x665]
push ebx
push eax
mov byte [esp + 0x66c], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1304
lea ecx, [esp + 0x668]
push 0x200
push ecx
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0x67c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401c70
lea ecx, [esp + 0x40]
call fcn.0045dd80
mov al, byte [ebp + 0xc]
test al, al
je 0x43e4a2
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c12f4
jmp 0x43e369
push 0x1040
call fcn.0048e9fc
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xa6c], 2
je 0x43e4ca
mov ecx, eax
call fcn.00478b20
mov ebp, eax
jmp 0x43e4cc
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi + 0x20]
push ebx
push ecx
push 0x1000
lea edx, [ebp + 0x30]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0xa7c], 3
call fcn.0043d0b0
mov ecx, dword [esp + 0x20]
mov esi, eax
mov al, byte [ecx + 0xc]
test al, al
je 0x43e51d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c12e4
call fcn.00401c70
lea ecx, [esp + 0x40]
call fcn.0045dd80
jmp 0x43e64a
cmp esi, ebx
jg 0x43e581
push 0x1ff
lea ecx, [esp + 0x465]
push ebx
push ecx
mov byte [esp + 0x46c], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4c12bc
lea edx, [esp + 0x46c]
push 0x200
push edx
call fcn.0048f10b
sub esp, 8
lea eax, [esp + 0x47c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00401c70
lea ecx, [esp + 0x40]
call fcn.0045dd80
jmp 0x43e64a
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea edx, [esp + 0x44]
push edx
push esi
push ebp
mov byte [esp + 0xa78], 4
call fcn.0043dd00
test al, al
je 0x43e5e7
lea ecx, [esp + 0x44]
call fcn.00401cb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa6c], 1
call fcn.0043cde0
lea ecx, [esp + 0x18]
call fcn.0043cd30
lea ecx, [esp + 0x24]
mov dword [esp + 0xa6c], 0xffffffff
call fcn.0045dc20
mov al, 1
jmp 0x43e67a
push 0x1ff
lea eax, [esp + 0x865]
push ebx
push eax
mov byte [esp + 0x86c], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c12a8
lea ecx, [esp + 0x868]
push 0x200
push ecx
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0x87c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401c70
lea ecx, [esp + 0x40]
call fcn.0045dd80
lea ecx, [esp + 0x44]
call fcn.00401cb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa6c], 1
call fcn.0043cde0
lea ecx, [esp + 0x18]
call fcn.0043cd30
lea ecx, [esp + 0x24]
mov dword [esp + 0xa6c], 0xffffffff
call fcn.0045dc20
xor al, al
mov ecx, dword [esp + 0xa64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa4c]
xor ecx, esp
call fcn.0048de34
add esp, 0xa5c
ret 4