Function at 0x403990
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x47c554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x407]
push esi
push edi
push 0x400
mov esi, ecx
mov dword [ebp - 0x828], edx
push 0
push eax
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x820], ebx
mov dword [ebp - 0x81c], 0
mov byte [ebp - 0x408], 0
call fcn.0043d400
push 0x400
lea eax, [ebp - 0x80b]
mov byte [ebp - 0x80c], 0
push 0
push eax
call fcn.0043d400
push 0x400
push esi
lea eax, [ebp - 0x408]
push 0x401
lea edi, [ebp - 0x80c]
mov dword [ebp - 0x818], eax
push eax
mov dword [ebp - 0x814], edi
call fcn.0044a3ea
add esp, 0x28
nop word [eax + eax]
push esi
mov dword [ebp - 0x810], ebx
mov dword [ebx], 0
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x403c17
cmp word [ebx + 8], 2
jne 0x403b02
cmp word [ebx + 0xa], 4
jne 0x403b02
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x403afc
mov eax, dword [eax]
push 0x20
push 1
mov dword [ebp - 0x824], eax
call fcn.0044bf4f
mov esi, eax
add esp, 8
test esi, esi
je 0x403baa
push 0x10
push 1
call fcn.0044bf4f
add esp, 8
test eax, eax
je 0x403ba1
mov ecx, 2
add edi, 4
mov word [eax], cx
mov cx, word [ebp + 0xc]
mov word [eax + 2], cx
mov ecx, dword [ebp - 0x824]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x828]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x810]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 4], 2
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 0x10
mov dword [eax], esi
lea eax, [esi + 0x1c]
mov dword [ebp - 0x810], eax
mov eax, dword [edi]
test eax, eax
jne 0x403a73
mov edi, dword [ebp - 0x814]
push 0x400
push dword [ebx]
push 0x401
push edi
call fcn.0044a3ea
mov ebx, dword [ebp - 0x820]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x403bc7
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b30
sub ecx, edx
je case.0x403c27.11003
mov ecx, dword [ebp - 0x818]
mov eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x403b67
test dl, dl
je 0x403b63
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x403b67
add ecx, 2
add eax, 2
test dl, dl
jne 0x403b47
xor eax, eax
jmp 0x403b6c
sbb eax, eax
or eax, 1
test eax, eax
je case.0x403c27.11003
mov esi, dword [ebp - 0x81c]
inc esi
mov dword [ebp - 0x81c], esi
cmp esi, 0x10
je case.0x403c27.11003
mov eax, dword [ebp - 0x818]
mov esi, dword [ebp - 0x82c]
mov dword [ebp - 0x818], edi
mov edi, eax
mov dword [ebp - 0x814], edi
jmp 0x403a30
push esi
call fcn.0044af5d
add esp, 4
mov eax, dword [ebp - 0x810]
mov esi, 8
mov dword [eax], 0
jmp 0x403c3a
mov esi, 0x2afb
jmp 0x403c3a
cmp dword [ebp + 0x10], esi
je 0x403c3a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403bd1
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.0044bf4f
mov edi, eax
add esp, 8
test edi, edi
je 0x403bfe
push dword [ebp - 0x814]
push ebx
push edi
call fcn.0043f2f3
add esp, 0xc
mov ecx, dword [ebp - 0x820]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x403c3a
mov esi, 8
jmp 0x403c3a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x403c27.11001
jmp dword [eax*4 + 0x403c50]
mov esi, 0x2afa
jmp 0x403c3a
mov esi, 0x2af9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
mov esp, ebp
pop ebp
ret 0x10