Function at 0x403bd0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x437af1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov eax, dword [0x449320]
push ebx
push esi
mov dword [esp + 0x238], eax
mov esi, ecx
mov ebx, dword [esp + 0x24c]
test ebx, ebx
mov dword [esp + 0x244], 2
jne 0x403c9a
mov eax, dword [esp + 0x254]
add eax, 0xfffffff0
mov byte [esp + 0x244], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
mov byte [esp + 0x244], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40413d
mov eax, dword [esi + 0x918]
test eax, eax
je 0x403cab
mov ecx, esi
call fcn.00402550
push edi
mov edi, dword [esp + 0x258]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x403f81
mov eax, dword [esi + 0x930]
test eax, eax
jne 0x403d39
push 0x68
call fcn.0042e719
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x248], 3
je 0x403d04
mov ecx, dword [esp + 0x264]
mov edx, dword [esp + 0x260]
push ecx
mov ecx, dword [esp + 0x258]
push edx
push ecx
push ebx
mov ecx, eax
call fcn.00406b50
jmp 0x403d06
xor eax, eax
test eax, eax
mov byte [esp + 0x248], 2
mov dword [esi + 0x930], eax
jne 0x403d39
mov ebx, 1
lea eax, [edi - 0x10]
mov byte [esp + 0x248], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4040db
mov eax, dword [esi + 0x930]
mov cl, byte [eax + 0x5c]
test cl, cl
jne 0x4040b9
mov ecx, dword [esp + 0x25c]
push edi
mov dword [esi + 0x814], ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esi + 0x920], eax
jne 0x403da5
push eax
push 0x439948
push str.gethostbyname__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x258]
call fcn.00401330
lea ecx, [esp + 0x260]
call fcn.00401330
lea ecx, [esp + 0x264]
call fcn.00401330
xor eax, eax
jmp 0x40413c
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ebx, dword [eax]
xor edx, edx
mov dx, word [esi + 0x814]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x38], ecx
push edx
mov word [esp + 0x30], 2
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, byte [esp + 0xe]
mov word [esp + 0x2e], ax
movzx eax, byte [esp + 0xf]
push eax
push ecx
movzx edx, bh
push edx
movzx eax, bl
push eax
lea ecx, [esi + 0x818]
push str._d._d._d._d
push ecx
mov dword [esp + 0x48], ebx
call fcn.0041c5fc
mov eax, dword [esi + 0x91c]
add esp, 0x18
push 0x10
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403d7a
mov ecx, dword [esi + 0x930]
mov dword [esp + 0x14], eax
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push 0
call dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004039c0
mov eax, dword [esp + 0x24]
mov edi, dword [esi + 0x930]
mov ebx, dword [edi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 4
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.004028b0
push eax
mov ecx, edi
call dword [ebx + 0xc]
test eax, eax
jl 0x403f33
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.004028b0
mov edx, dword [esi + 0x91c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
mov byte [esp + 0x3c], 0
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
nop
mov ecx, dword [esi + 0x91c]
push 0
push 0x1ff
lea eax, [esp + 0x44]
push eax
push ecx
call edi
test eax, eax
jl 0x403ed0
mov ecx, dword [esi + 0x930]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x40]
push eax
call dword [edx + 8]
test eax, eax
jle 0x403f6a
mov eax, dword [esi + 0x930]
mov cl, byte [eax + 0x5c]
test cl, cl
jne 0x403f73
mov eax, dword [eax + 0x60]
cmp eax, 3
jge 0x403f73
mov ecx, dword [esi + 0x91c]
push eax
push ecx
mov ecx, esi
call fcn.004039f0
test eax, eax
jne 0x403ed0
mov edx, dword [esi + 0x91c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x18]
call fcn.00402ab0
lea ecx, [esp + 0x258]
call fcn.00401330
lea ecx, [esp + 0x260]
call fcn.00401330
lea ecx, [esp + 0x264]
call fcn.00401330
mov eax, 1
jmp 0x40413c
mov eax, dword [esi + 0x91c]
push eax
jmp 0x403f2d
lea ecx, [esp + 0x18]
call fcn.00402ab0
jmp 0x4040b2
mov edi, dword [esp + 0x254]
push ebx
mov dword [esi + 0x814], edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esi + 0x920], eax
jne 0x40403a
push eax
push 0x439948
push str.gethostbyname__
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x258]
add eax, 0xfffffff0
mov byte [esp + 0x248], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403fde
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
mov byte [esp + 0x248], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404007
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x264]
add eax, 0xfffffff0
mov dword [esp + 0x248], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x40413c
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov ebx, dword [ecx]
xor edx, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], edx
mov word [esp + 0x30], 2
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, byte [esp + 0xe]
mov word [esp + 0x2e], ax
movzx eax, byte [esp + 0xf]
push eax
push ecx
movzx edx, bh
push edx
movzx eax, bl
push eax
lea ecx, [esi + 0x818]
push str._d._d._d._d
push ecx
mov dword [esp + 0x48], ebx
call fcn.0041c5fc
mov eax, dword [esi + 0x91c]
add esp, 0x18
push 0x10
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403fb5
mov edi, dword [esp + 0x258]
mov ebx, 1
lea eax, [edi - 0x10]
mov dword [esi + 0x918], ebx
mov byte [esp + 0x248], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x260]
add eax, 0xfffffff0
mov byte [esp + 0x248], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40410e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x264]
add eax, 0xfffffff0
mov dword [esp + 0x248], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40413a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, ebx
pop edi
mov ecx, dword [esp + 0x23c]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x234]
pop ebx
call fcn.0041c22b
add esp, 0x240
ret 0x18