Function at 0x403904
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42ba33
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x4386b4]
xor eax, esp
mov dword [esp + 0x204], eax
push esi
push edi
mov eax, dword [0x4386b4]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
cmp dword [ebx + 0x6c], 5
je 0x403950
xor al, al
jmp 0x403bc2
mov esi, dword [ebx + 0x24]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403958
sub eax, edx
je 0x403b6c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40396c
sub eax, edx
inc eax
cmp eax, 0x800
ja 0x403b6c
mov ecx, ebx
call fcn.004040a3
mov eax, dword [ebx + 0x34]
xor edi, edi
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], edi
mov byte [esp + 0x54], 0
call fcn.00402b7d
or esi, 0xffffffff
mov dword [esp + 0x220], edi
cmp dword [ebx + 0x2c], esi
je 0x4039d1
mov dword [esp + 0x220], esi
push edi
push 1
lea ecx, [esp + 0x58]
call fcn.00402b9e
mov al, 1
jmp 0x403b6e
lea eax, [esp + 0x7c]
push eax
push 0x101
mov dword [ebx + 0x2c], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, edi
je 0x4039f3
push str.WSAStartup_error
call fcn.00412785
pop ecx
push edi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x2c], eax
cmp eax, edi
jge 0x403a11
mov dword [esp + 0x220], esi
jmp 0x403b60
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x50
mov dword [esp + 0x18], edi
mov byte [esp + 0x220], 1
push dword [ebx + 0x24]
lea eax, [esp + 0x18]
call fcn.00407132
cmp dword [esp + 0x28], edi
jl 0x403b4f
cmp dword [esp + 0x1c], edi
je 0x403b4f
push dword [esp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], edi
mov byte [esp + 0x38], 0
call fcn.00402b7d
push edi
mov byte [esp + 0x224], 2
mov eax, dword [esp + 0x48]
push 0x430417
lea edx, [esp + 0x3c]
call fcn.00404b94
test eax, eax
je 0x403b43
xor eax, eax
lea edi, [esp + 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [esp + 0x28]
mov word [esp + 0x70], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esp + 0x48], 0x10
mov word [esp + 0x6e], ax
mov eax, dword [esp + 0x34]
jae 0x403aca
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
xor edi, edi
cmp eax, edi
je 0x403b3c
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [esp + 0x78]
push eax
call fcn.00414b90
add esp, 0xc
push 0x10
lea eax, [esp + 0x70]
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, edi
jne 0x403b24
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.00402b9e
lea esi, [esp + 0x14]
call fcn.0040718c
or dword [esp + 0x220], 0xffffffff
jmp 0x4039be
jge 0x403b30
call fcn.00412a71
cmp dword [eax], 0x70
jne 0x403b3c
mov ecx, dword [ebx + 0x2c]
call fcn.00403be5
cmp eax, edi
jg 0x403b02
mov esi, ebx
call fcn.004043a2
push edi
push 1
lea ecx, [esp + 0x3c]
call fcn.00402b9e
lea esi, [esp + 0x14]
call fcn.0040718c
or dword [esp + 0x220], 0xffffffff
push edi
push 1
lea ecx, [esp + 0x58]
call fcn.00402b9e
xor al, al
mov byte [ebx + 0x18], 1
test al, al
jne 0x403b8d
mov esi, ebx
call fcn.004043a2
mov byte [ebx + 0x18], 0
mov dword [ebx + 0x68], 2
jmp 0x403949
mov eax, ebx
call fcn.00404327
push str._____________n______________AHttpSocket::httpResquest_________
mov byte [esp + 0x17], al
call fcn.004125f1
cmp byte [esp + 0x17], 0
pop ecx
je 0x403b7d
mov ecx, ebx
call fcn.00403f37
test al, al
je 0x403b7d
mov ecx, ebx
call fcn.004047c2
test al, al
je 0x403b7d
mov al, 1
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00411f09
mov esp, ebp
pop ebp
ret