Function at 0x1002da30
Capabilities:
Resolve dns
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10127efb
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x1019f010]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x1019f010]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ecx], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [edx], ebx
cmp eax, ebx
jne 0x1002daef
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x110], ebx
call fcn.1002d5c0
movzx eax, ax
xor edx, edx
cmp ax, dx
je 0x1002dba5
cmp di, dx
je 0x1002db20
cmp di, ax
je 0x1002db20
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.1010ee1f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1002daf9
lea edi, [eax + 1]
jmp 0x1002da8e
sub eax, 2
neg eax
sbb eax, eax
and eax, 0xe8
add eax, 0x17
movzx edi, ax
mov eax, 0xff
cmp di, ax
jne 0x1002da8e
push 0x273f
jmp 0x1002dac3
mov word [esp + 0x58], ax
cmp eax, 2
je 0x1002db36
cmp eax, 0x17
je 0x1002db3d
push 0x2741
jmp 0x1002dac3
mov ecx, 0x10
jmp 0x1002db42
mov ecx, 0x1c
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x5c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAStringToAddressA]
test eax, eax
jne 0x1002dac9
lea eax, [esp + 0x58]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.1002eec0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
push edx
mov eax, edi
push eax
call fcn.1002ddc0
mov esi, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x1002db9e
push eax
call fcn.1010ee14
add esp, 4
mov eax, esi
jmp 0x1002dacb
xor eax, eax
mov dword [esp + 0x3c], eax
movzx ecx, di
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], pe_nt_image_headers32
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x74], eax
cmp esi, edx
jne 0x1002dc1e
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x78]
cmp eax, ecx
je 0x1002dc14
push eax
call fcn.1010ef42
add esp, 4
test esi, esi
je 0x1002dc7c
push esi
jmp 0x1002dac3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea edi, [esp + 0x78]
mov ecx, eax
lea esi, [esp + 0x74]
mov dword [esp + 0x14], eax
call fcn.1001f320
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x74]
push eax
push ecx
push eax
push edx
call fcn.101104a1
add esp, 0x10
cmp eax, 0x50
ja case.0x1002dc61.0
movzx eax, byte [eax + 0x1002dd68]
jmp dword [eax*4 + 0x1002dd58]
push 0x8007000e
call fcn.10017700
push 0x80070057
call fcn.10017700
mov eax, dword [esp + 0x28]
mov edi, eax
test eax, eax
je 0x1002dcfc
mov eax, dword [edi + 4]
cmp eax, 2
je 0x1002dc93
cmp eax, 0x17
jne 0x1002dcf5
mov esi, dword [edi + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], esi
cmp edx, ebx
jae 0x1002dcd5
mov eax, dword [esp + 0x18]
mov ecx, edx
cmp eax, ecx
ja 0x1002dcd5
mov esi, edx
sub esi, eax
sar esi, 2
cmp ebx, dword [esp + 0x20]
jne 0x1002dcca
lea eax, [esp + 0x18]
call fcn.10030540
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x1002dcee
mov edx, dword [eax + esi*4]
mov dword [ebx], edx
jmp 0x1002dcee
cmp ebx, dword [esp + 0x20]
jne 0x1002dce8
lea eax, [esp + 0x18]
call fcn.10030540
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1002dcee
mov dword [ebx], esi
add ebx, 4
mov dword [esp + 0x1c], ebx
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x1002dc86
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.1002ddc0
mov esi, eax
mov eax, dword [esp + 0x34]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
jne 0x1002dd2f
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002db9e
push eax
call fcn.1010ee14
add esp, 4
mov eax, esi
jmp 0x1002dacb
push 0x80004005
call fcn.10017700
lea ecx, [ecx]
out 0xdb, al
add dl, byte [eax]
push 0x721002dc
fadd qword [edx]
adc byte [ebx - 0x23], cl
add dl, byte [eax]
add byte [ebx], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add dword [ebx], eax
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add al, byte [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add ah, cl
int3