Function at 0x40f330
Capabilities:
Resolve dns

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43eeb1
push eax
mov eax, dword [0x452110]
mov dword fs:[0], esp
sub esp, 0x138
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov ebp, ecx
je 0x40f920
cmp dword [ebp + 0x1b0], 1
je 0x40fa07
mov eax, dword [ebp + 0x2bc]
lea edi, [ebp + 0x2b8]
cmp eax, ebx
jne 0x40f382
mov eax, 0x4416fc
lea esi, [ebp + 0xc]
push esi
push eax
call fcn.0040fbe0
add esp, 8
test al, al
je 0x40f92a
mov eax, dword [0x452110]
push edi
add eax, 0x134
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x1f], 1
call fcn.0040d050
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x150], ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
jne 0x40f3cd
mov eax, 0x4416fc
lea edx, [esp + 0x28]
lea ecx, [esp + 0x13]
push edx
push ecx
push eax
call fcn.004096a0
add esp, 0xc
test al, al
je 0x40f587
mov al, byte [esp + 0x13]
test al, al
jne 0x40f587
mov eax, dword [esi]
mov edx, dword [ebp + 4]
push eax
push edx
mov ecx, ebp
mov dword [ebp + 0x1c], eax
call fcn.0040ebb0
mov eax, dword [ebp + 4]
mov dword [ebp + 0x1b0], 2
cmp eax, 1
je 0x40f93a
cmp eax, 2
jne 0x40f56c
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
jne 0x40f430
mov eax, 0x4416fc
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x1c]
push ecx
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.00410af0
lea ecx, [esp + 0x30]
mov byte [esp + 0x150], 1
call fcn.00410f20
cmp eax, ebx
jle 0x40f953
mov esi, dword [esp + 0x54]
cmp esi, ebx
jne 0x40f468
mov esi, 0x4416fc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp + 0x48]
push ebx
call fcn.00403660
test al, al
je 0x40f4a3
mov edi, dword [ebp + 0x4c]
mov ecx, ebx
lea eax, [ebp + 0x48]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
call fcn.00403640
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
test esi, esi
mov dword [ebp + 0x58], eax
jne 0x40f4b7
mov esi, 0x4416fc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x1308]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x18], ecx
push ecx
mov ecx, ebx
call fcn.00403660
test al, al
je 0x40f4fa
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 4]
mov ecx, eax
push eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00403640
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x40f50a
mov esi, 0x4416fc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp + 0x2b8]
push ebx
call fcn.00403660
test al, al
je 0x40f54e
mov edi, dword [ebp + 0x2bc]
mov ecx, ebx
lea eax, [ebp + 0x2b8]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
call fcn.00403640
mov eax, dword [0x452110]
mov byte [esp + 0x150], 0
mov ecx, dword [eax + 4]
mov dword [ebp + 0x20], ecx
lea ecx, [esp + 0x30]
call fcn.00410bb0
xor ebx, ebx
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x154], 0xffffffff
call fcn.00403320
jmp 0x40f90a
mov ecx, ebp
call fcn.0040ee30
cmp eax, ebx
mov dword [esp + 0x2c], eax
jne 0x40fa58
mov eax, dword [esi]
mov edx, dword [ebp + 4]
push eax
push edx
mov ecx, ebp
mov dword [ebp + 0x1c], eax
call fcn.0040ebb0
cmp dword [ebp + 4], 1
jne 0x40f761
mov ecx, dword [0x452110]
mov eax, dword [ebp + 0x98]
mov dword [ecx + 0x1bc], eax
mov ecx, dword [0x452110]
lea edx, [ecx + 0x17c]
push edx
call fcn.0040ca40
mov ecx, dword [0x452110]
mov eax, dword [ebp + 0xa4]
mov dword [ecx + 0x1c8], eax
mov eax, dword [0x452110]
mov edx, dword [ebp + 0x9c]
mov dword [eax + 0x1c0], edx
mov edx, dword [0x452110]
mov ecx, dword [ebp + 0xa0]
mov dword [edx + 0x1c4], ecx
mov eax, dword [0x452110]
mov edx, dword [0x441700]
lea ecx, [eax + 0x16c]
push edx
lea eax, [ebp + 0x48]
push 0
push eax
call fcn.00403120
mov edx, dword [0x441700]
mov ecx, dword [0x452110]
push edx
lea eax, [ebp + 0x6c]
push 0
add ecx, 0x18c
push eax
call fcn.00403120
mov eax, dword [ebp + 0x130c]
lea esi, [ebp + 0x1308]
test eax, eax
jne 0x40f65e
mov eax, 0x4416fc
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40f734
mov cl, byte [0x45207c]
xor eax, eax
mov byte [esp + 0x108], cl
mov ecx, 0xf
lea edi, [esp + 0x109]
mov esi, dword [esi + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
jne 0x40f699
mov esi, 0x4416fc
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x40f74e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x452110]
lea edi, [esp + 0x10c]
lea ebx, [ecx + 0x19c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
push ecx
mov ecx, ebx
call fcn.00403660
test al, al
je 0x40f74e
mov eax, dword [esp + 0x14]
mov edi, dword [ebx + 4]
mov ecx, eax
lea esi, [esp + 0x108]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
jmp 0x40f74e
mov edx, dword [0x441700]
mov eax, dword [0x452110]
push edx
push 0
lea ecx, [eax + 0x19c]
push esi
call fcn.00403120
mov dword [ebp + 8], 0
mov dword [ebp + 0x1b0], 4
xor ebx, ebx
cmp dword [ebp + 4], 2
jne 0x40f8cf
mov eax, dword [ebp + 0x4c]
cmp eax, ebx
jne 0x40f777
mov eax, 0x4416fc
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x1c]
push ecx
push eax
push edx
lea ecx, [esp + 0xa8]
call fcn.00410af0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x150], 2
call fcn.00410f20
cmp eax, ebx
jle 0x40f9be
mov esi, dword [esp + 0xc0]
cmp esi, ebx
jne 0x40f7b8
mov esi, 0x4416fc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp + 0x48]
push ebx
call fcn.00403660
test al, al
je 0x40f7f3
mov edi, dword [ebp + 0x4c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x50], ebx
add ebx, eax
mov byte [ebx], 0
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0xcc]
test esi, esi
mov dword [ebp + 0x58], ecx
jne 0x40f80d
mov esi, 0x4416fc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x1308]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, edx
push ebx
call fcn.00403660
test al, al
je 0x40f856
mov edi, dword [ebp + 0x130c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x130c]
mov dword [ebp + 0x1310], ebx
add ebx, eax
mov byte [ebx], 0
mov esi, dword [esp + 0xec]
test esi, esi
jne 0x40f866
mov esi, 0x4416fc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp + 0x2b8]
push ebx
call fcn.00403660
test al, al
je 0x40f8ad
mov edi, dword [ebp + 0x2bc]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x2bc]
mov dword [ebp + 0x2c0], ebx
add ebx, eax
mov byte [ebx], 0
mov ecx, dword [0x452110]
mov byte [esp + 0x150], 0
mov edx, dword [ecx + 4]
lea ecx, [esp + 0x9c]
mov dword [ebp + 0x20], edx
call fcn.00410bb0
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x150], 0xffffffff
cmp ecx, ebx
je 0x40f8fe
mov al, byte [ecx - 1]
test al, al
je 0x40f8f4
cmp al, 0xff
je 0x40f8f4
dec al
mov byte [ecx - 1], al
jmp 0x40f8fe
dec ecx
push ecx
call fcn.0043359c
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp dword [ebp + 4], 1
je 0x40fa07
cmp dword [0x452110], ebx
jne 0x40f360
mov eax, 0xb
jmp 0x40fbbf
mov dword [ebp + 0x1b0], ebx
mov eax, 0xd
jmp 0x40fbbf
mov eax, dword [esp + 0x28]
push eax
push eax
mov dword [ebp + 0x80], eax
mov dword [ebp + 0x7c], eax
call fcn.00410e40
add esp, 8
jmp 0x40f970
jne 0x40f98d
lea ecx, [esp + 0x30]
mov dword [ebp + 0x1b0], 1
mov byte [esp + 0x150], 0
call fcn.00410bb0
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x154], 0xffffffff
call fcn.00403320
xor eax, eax
jmp 0x40fbbf
lea ecx, [esp + 0x30]
mov byte [esp + 0x150], 0
call fcn.00410bb0
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x154], 0xffffffff
call fcn.00403320
mov eax, 0x1001
jmp 0x40fbbf
jne 0x40fa0e
lea ecx, [esp + 0x9c]
mov dword [ebp + 0x1b0], 1
mov byte [esp + 0x150], 0
call fcn.00410bb0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fa07
mov al, byte [ecx - 1]
test al, al
je 0x40f9fd
cmp al, 0xff
je 0x40f9fd
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x40fbbf
dec ecx
push ecx
call fcn.0043359c
add esp, 4
xor eax, eax
jmp 0x40fbbf
lea ecx, [esp + 0x9c]
mov byte [esp + 0x150], 0
call fcn.00410bb0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x40fa4e
mov al, byte [ecx - 1]
test al, al
je 0x40fa44
cmp al, 0xff
je 0x40fa44
dec al
mov byte [ecx - 1], al
mov eax, 0x1001
jmp 0x40fbbf
dec ecx
push ecx
call fcn.0043359c
add esp, 4
mov eax, 0x1001
jmp 0x40fbbf
mov eax, dword [0x452110]
xor esi, esi
mov edi, 0x45207c
or ecx, 0xffffffff
lea ebx, [eax + 0x158]
xor eax, eax
mov dword [ebx], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x45207c
lea ecx, [ebx + 4]
call fcn.00403480
mov edi, 0x45207c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x45207c
lea ecx, [ebx + 0x14]
call fcn.00403480
mov edi, 0x45207c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x45207c
lea ecx, [ebx + 0x24]
call fcn.00403480
mov edi, 0x45207c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x45207c
lea ecx, [ebx + 0x34]
call fcn.00403480
mov edi, 0x45207c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x18], ecx
push ecx
mov ecx, edx
call fcn.00403660
test al, al
je 0x40fb28
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x48]
lea eax, [ebx + 0x44]
mov edx, ecx
mov esi, 0x45207c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call fcn.00403640
xor esi, esi
mov edi, 0x45207c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x54]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x18], ecx
push ecx
mov ecx, edx
call fcn.00403660
test al, al
je 0x40fb75
mov ecx, dword [esp + 0x14]
mov edi, dword [ebx + 0x58]
lea eax, [ebx + 0x54]
mov edx, ecx
mov esi, 0x45207c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
push ecx
mov ecx, eax
call fcn.00403640
xor esi, esi
mov edi, dword [esp + 0x2c]
xor edx, edx
cmp edi, 0xb
mov dword [ebx + 0x64], esi
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x6c], esi
mov dword [ebx + 0x68], esi
mov ecx, dword [esp + 0x1c]
setne dl
add edx, 5
cmp ecx, esi
mov dword [ebp + 8], edi
mov dword [ebp + 0x1b0], edx
je 0x40fbbd
mov al, byte [ecx - 1]
test al, al
je 0x40fbb3
cmp al, 0xff
je 0x40fbb3
dec al
mov byte [ecx - 1], al
jmp 0x40fbbd
dec ecx
push ecx
call fcn.0043359c
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret