Function at 0x10004530
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037625
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov word [ebp - 0x58], dx
mov edi, ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
sub eax, ecx
mov dword [ebp - 0x3c], 0x18
cmp eax, 0x18
jbe 0x10004598
lea eax, [ecx + 0x18]
mov dword [ebp - 0x44], eax
jmp 0x100045a8
jae 0x100045a8
push ecx
push 0x18
lea ecx, [ebp - 0x48]
call fcn.10002080
mov ecx, dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x10004621
cmp eax, 0x7a
jne 0x10004617
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
sub esi, edx
mov ecx, dword [ebp - 0x3c]
cmp ecx, esi
jae 0x100045d5
lea eax, [edx + ecx]
mov dword [ebp - 0x44], eax
jmp 0x10004606
jbe 0x10004606
mov eax, dword [ebp - 0x40]
sub eax, edx
cmp ecx, eax
jbe 0x100045ec
push ecx
push ecx
lea ecx, [ebp - 0x48]
call fcn.10002080
jmp 0x10004603
mov eax, dword [ebp - 0x44]
sub ecx, esi
push ecx
push 0
push eax
lea esi, [eax + ecx]
call fcn.10026360
add esp, 0xc
mov dword [ebp - 0x44], esi
mov edx, dword [ebp - 0x48]
push 1
lea eax, [ebp - 0x3c]
push eax
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
test eax, eax
je 0x10004621
mov esi, 2
jmp 0x100047e7
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x60], esi
test edi, edi
je 0x10004684
cmp byte [edi], 0
je 0x10004684
lea ecx, [ebp - 0x55]
call fcn.10005240
mov byte [ebp - 4], 1
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10004662
mov byte [ebp - 4], al
sub dword [0x1005a928], 1
jne 0x10004659
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x3c], 0
jmp 0x1000468c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 0
sub dword [0x1005a928], 1
jne 0x1000467f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [ebp - 0x60]
jmp 0x1000468c
mov eax, dword [0x1005a92c]
mov dword [ebp - 0x3c], eax
cmp dword [esi], 0
mov dword [ebp - 0x5c], 0
jbe 0x100047e5
lea edi, [esi + 0xc]
nop
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0x28
movzx eax, ax
push 0x40
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], 0xb
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
add eax, 0x28
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x54]
push 0x28
push eax
push esi
call fcn.100264c0
add esi, 0x28
mov dword [ebp - 0x64], 0
add esp, 0xc
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
cmp eax, edx
je 0x10004783
mov ecx, dword [edi - 8]
nop dword [eax + eax]
cmp dword [eax], ecx
je 0x1000476d
add eax, 4
cmp eax, edx
jne 0x10004760
jmp 0x10004783
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edi - 4]
jne 0x10004783
mov ax, word [ebp - 0x58]
cmp ax, word [ebp - 0x68]
je 0x1000481a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x100047d0
mov eax, dword [ebp - 0x4c]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x100047b0
mov ecx, dword [ecx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100048aa
test ecx, ecx
je 0x100047bb
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x5c]
add edi, 0x14
mov ecx, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, dword [ecx]
jb 0x100046a0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x1000488d
mov eax, dword [ebp - 0x40]
mov edx, ecx
sub eax, edx
cmp eax, 0x1000
jb 0x1000486d
mov ecx, dword [ecx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100048aa
jmp 0x1000486d
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x10004863
mov eax, dword [ebp - 0x4c]
mov edx, ecx
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x10004843
mov ecx, dword [ecx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100048aa
test ecx, ecx
je 0x1000484e
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov esi, 1
jmp 0x100047e7
test ecx, ecx
je 0x10004878
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10024a34
mov esp, ebp
pop ebp
ret
call fcn.100281cf
int3