Function at 0x43fd50
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4b8660
mov eax, dword fs:[0]
push eax
sub esp, 0xe68
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0xe64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0xe7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0xe8c]
sub esp, 0x1c
mov dword [esp + 0x38], ecx
mov ecx, esp
mov dword [esp + 0x54], esp
xor ebx, ebx
push 0xe
mov ebp, 0xf
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push str._tmpdubai.log
mov byte [ecx + 4], bl
call fcn.00401e90
lea ecx, [esp + 0x58]
call fcn.0045dc70
mov dword [esp + 0xe84], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push 6
push 1
push 2
mov byte [esp + 0xe90], 3
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x43fe7e
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx + 0xc]
test dl, dl
je 0x43ff21
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push 0x4c13cc
mov byte [ecx + 4], bl
call fcn.00401e90
lea ecx, [esp + 0x58]
call fcn.0045dd80
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x43fe5d
push eax
call fcn.0048d433
add esp, 4
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0048d433
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x44042d
push 0x1ff
lea ecx, [esp + 0x7d]
push ebx
push ecx
mov byte [esp + 0x84], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.socket.isValid_failed__errorcode_d
lea edx, [esp + 0x80]
push 0x200
push edx
call fcn.0048f10b
sub esp, 0xc
mov esi, esp
lea eax, [esp + 0x94]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x43fed2
sub eax, edx
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, esi
call fcn.00401e90
lea ecx, [esp + 0x58]
call fcn.0045dd80
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x43ff07
push eax
call fcn.0048d433
add esp, 4
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.0048d433
add esp, 4
jmp 0x44042d
push 0x1ff
lea eax, [esp + 0x27d]
push ebx
push eax
mov byte [esp + 0x284], bl
call fcn.0048ea70
add esp, 0xc
cmp dword [edi + 0x18], 0x10
jb 0x43ff49
mov eax, dword [edi + 4]
jmp 0x43ff4c
lea eax, [edi + 4]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
push ecx
push edx
push eax
push 0x4c1594
lea eax, [esp + 0x288]
push 0x200
push eax
call fcn.0048f10b
push ecx
mov esi, esp
lea eax, [esp + 0x294]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [esi + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x43ff86
sub eax, edx
push eax
lea ecx, [esp + 0x298]
push ecx
mov ecx, esi
call fcn.00401e90
lea ecx, [esp + 0x58]
call fcn.0045dd80
cmp dword [edi + 0x18], 0x10
jb 0x43ffb5
mov eax, dword [edi + 4]
jmp 0x43ffb8
lea eax, [edi + 4]
movzx ecx, word [edi + 0x1c]
mov edx, dword [edi + 0x20]
push edx
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0043c3d0
test al, al
jne 0x440076
mov edx, dword [esp + 0x1c]
mov al, byte [edx + 0xc]
test al, al
je 0x440025
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c1580
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
lea ecx, [esp + 0x20]
call fcn.00402cd0
push ebx
call fcn.0048d433
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, 0xffffffff
je 0x44042d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x44042d
push 0x1ff
lea ecx, [esp + 0xa7d]
push ebx
push ecx
mov byte [esp + 0xa84], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1560
lea edx, [esp + 0xa80]
push 0x200
push edx
call fcn.0048f10b
sub esp, 0xc
lea eax, [esp + 0xa94]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
jmp 0x43ffec
push 8
call fcn.0048e9fc
mov esi, dword [esp + 0x1c]
add esp, 4
cmp eax, ebx
je 0x44013c
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x34]
push ebx
mov dword [eax], esi
mov dword [eax + 4], ecx
mov ebp, eax
call fcn.0048d433
add esp, 4
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
mov dword [esp + 0x3c], ebp
call fcn.0043f8f0
test al, al
jne 0x440143
push 0x1ff
lea eax, [esp + 0x47d]
push ebx
push eax
mov byte [esp + 0x484], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1540
lea ecx, [esp + 0x480]
push 0x200
push ecx
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0x494]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
lea ecx, [esp + 0x20]
call fcn.00402cd0
push ebp
call fcn.0048d433
add esp, 4
cmp esi, 0xffffffff
je 0x44042d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x44042d
xor ebp, ebp
jmp 0x4400a3
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jne 0x44014f
xor eax, eax
jmp 0x440155
mov eax, dword [esp + 0x28]
sub eax, ecx
push eax
push ebx
lea ecx, [esp + 0x28]
call fcn.00402e70
push eax
lea ecx, [esp + 0x20]
call fcn.0043c530
test al, al
jne 0x4401f8
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0xc]
test cl, cl
je 0x44019e
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c152c
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
jmp 0x440412
push 0x1ff
lea edx, [esp + 0x67d]
push ebx
push edx
mov byte [esp + 0x684], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c1510
lea eax, [esp + 0x680]
push 0x200
push eax
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0x694]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0xc]
test cl, cl
je 0x440224
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c14fc
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
jmp 0x440412
push 0x1040
call fcn.0048e9fc
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0xe84], 4
je 0x44024e
mov ecx, eax
call fcn.00478b20
mov dword [esp + 0x34], eax
jmp 0x440254
mov dword [esp + 0x34], ebx
mov eax, ebx
mov dword [esp + 0x30], eax
mov edx, dword [edi + 0x20]
push 1
push edx
add eax, 0x30
push 0x1000
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0xe94], 5
call fcn.0043d0b0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0xc]
test cl, cl
je 0x4402a6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x4c14e8
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
jmp 0x440401
cmp esi, ebx
jg 0x440309
push 0x1ff
lea edx, [esp + 0x87d]
push ebx
push edx
mov byte [esp + 0x884], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c14cc
lea eax, [esp + 0x880]
push 0x200
push eax
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0x894]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
jmp 0x440401
mov ecx, dword [esp + 0x34]
add ecx, 0x30
mov edi, esi
mov dl, byte [ecx]
not dl
mov byte [ecx], dl
add ecx, 1
sub edi, 1
jne 0x440312
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x5c]
push ecx
push esi
push edx
mov ecx, eax
mov byte [esp + 0xe90], 6
call fcn.0043dd00
test al, al
je 0x44039e
lea ecx, [esp + 0x5c]
call fcn.00401cb0
lea ecx, [esp + 0x30]
mov byte [esp + 0xe84], 3
call fcn.0043cde0
lea ecx, [esp + 0x20]
call fcn.00402cd0
push ebp
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0043cd30
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe84], 0xffffffff
call fcn.0045dc20
mov al, 1
jmp 0x440443
push 0x1ff
lea eax, [esp + 0xc7d]
push ebx
push eax
mov byte [esp + 0xc84], bl
call fcn.0048ea70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c14b4
lea ecx, [esp + 0xc80]
push 0x200
push ecx
call fcn.0048f10b
sub esp, 0xc
lea edx, [esp + 0xc94]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00401c70
lea ecx, [esp + 0x58]
call fcn.0045dd80
lea ecx, [esp + 0x5c]
call fcn.00401cb0
lea ecx, [esp + 0x30]
mov byte [esp + 0xe84], 3
call fcn.0043cde0
lea ecx, [esp + 0x20]
call fcn.00402cd0
push ebp
call fcn.0048d433
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0043cd30
lea ecx, [esp + 0x3c]
mov dword [esp + 0xe84], 0xffffffff
call fcn.0045dc20
xor al, al
mov ecx, dword [esp + 0xe7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe64]
xor ecx, esp
call fcn.0048de34
add esp, 0xe74
ret 4