Function at 0x403640
Capabilities:
Create raw socket
Create udp socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x4107d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c0
mov eax, dword [0x4144a0]
xor eax, dword [esp + 0x1cc]
push ebx
push esi
mov esi, 0x411460
mov dword [esp + 0x1c4], eax
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0xffffffff
xor ebx, ebx
push ebx
push 3
push 2
mov dword [esp + 0x1dc], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4036ed
mov eax, dword [esp + 0x1d8]
cmp eax, ebx
jne 0x4036ad
xor eax, eax
jmp 0x4036b0
mov eax, dword [eax + 4]
push 0x30
push 0x4114b8
push str.Create_Socket_Error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
mov dword [esp + 8], esi
je 0x403938
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x403938
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x24], 0xfa0
call dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x60]
push 0x64
push edx
call fcn.00404530
add esp, 8
lea eax, [esp + 0x60]
push eax
push 0x1b5a
lea ecx, [esp + 0x10]
call fcn.00404490
test al, al
jne 0x403782
mov eax, dword [esp + 0x1d8]
cmp eax, ebx
jne 0x403742
xor eax, eax
jmp 0x403745
mov eax, dword [eax + 4]
push 0x30
push 0x4114b8
push str.Bind_Port_Error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
mov dword [esp + 8], esi
je 0x403938
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x403938
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0x28
lea eax, [esp + 0x48]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push 0x98000001
push edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x4037e2
mov eax, dword [esp + 0x1d8]
cmp eax, ebx
jne 0x4037c7
xor eax, eax
jmp 0x4037ca
mov eax, dword [eax + 4]
push 0x30
push 0x4114b8
push str.WSAIoctl_Func_Error_
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40392f
mov esi, dword [esp + 0x1d8]
mov dword [esi + 0x148], ebx
mov dword [esi + 0x144], ebx
cmp dword [esi + 0x130], ebx
je 0x40392f
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push edi
lea esp, [esp]
push 0xc
call fcn.00405f90
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x1d8], 1
je 0x403835
mov ecx, eax
call fcn.00403c10
mov edi, eax
jmp 0x403837
xor edi, edi
lea eax, [esp + 0x10]
push edi
push eax
mov byte [esp + 0x1e0], bl
mov dword [esp + 0x20], edi
call fcn.00402a30
add esp, 8
test eax, eax
je 0x403915
cmp dword [esi + 0x130], ebx
je 0x403915
mov ecx, dword [esi + 0x144]
lea edx, [esp + 0x24]
push edx
inc ecx
push edi
mov dword [esi + 0x144], ecx
call fcn.00403d00
lea eax, [esi + 0x164]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00402990
add esp, 0x10
test eax, eax
je 0x4038cf
mov edx, dword [esi + 0x148]
lea eax, [esp + 0x18]
inc edx
push eax
lea ecx, [esi + 0x134]
mov dword [esi + 0x148], edx
call fcn.00403530
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x140]
push edi
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x30], ecx
call fcn.00402780
add esp, 0xc
jmp 0x4038db
cmp edi, ebx
je 0x4038db
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esi + 0x148]
mov ecx, dword [esi + 0x144]
push eax
push ecx
lea edx, [esp + 0xd4]
push 0x4115d4
push edx
call ebp
mov ecx, dword [esi + 0x14]
add esp, 0x10
lea eax, [esp + 0xcc]
push eax
push ebx
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x403921
cmp edi, ebx
je 0x403921
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
cmp dword [esi + 0x130], ebx
jne 0x403810
pop edi
pop ebp
lea ecx, [esp + 8]
call fcn.00402fe0
mov ecx, dword [esp + 0x1c8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1c4]
xor ecx, dword [esp + 0x1d4]
pop esi
pop ebx
add esp, 0x1cc
jmp fcn.00406097