Function at 0x100a05e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x244
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x240], eax
mov ecx, dword [esp + 0x24c]
push edi
mov edi, dword [esp + 0x24c]
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 0x138]
mov dword [esp + 4], eax
mov dword [ecx], 0
test eax, eax
jne 0x100a0636
mov eax, 0x1b
pop edi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.100ab558
add esp, 0x244
ret
cmp dword [eax + 4], 0
push esi
lea esi, [eax + 4]
jne 0x100a0685
cmp dword [eax + 0x220], 0
jne 0x100a0685
push dword [edi + 0x9b8]
push str.Could_not_DOH_resolve:__s
push edi
call fcn.10072c50
mov ecx, dword [edi + 0xc]
add esp, 0xc
xor eax, eax
cmp byte [ecx + 0x252], al
pop esi
sete al
add eax, 5
pop edi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.100ab558
add esp, 0x244
ret
cmp dword [eax + 0x43c], 0
jne 0x100a08e6
push ebx
mov dword [esp + 0x10], 0
mov ebx, 2
mov dword [esp + 0x14], 0
nop dword [eax + eax]
push dword [esi]
push dword [edi + 0x70]
call fcn.10064bc0
push esi
call fcn.1006e870
add esp, 0xc
add esi, 0x21c
sub ebx, 1
jne 0x100a06b0
push 0x22c
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.100ae160
add esp, 0xc
mov dword [esp + 0x244], getpeername
lea esi, [esp + 0x20]
mov ebx, 4
push 0x100
push esi
call fcn.10069b40
add esp, 8
add esi, 0x10
sub ebx, 1
jne 0x100a06f5
mov esi, dword [esp + 0xc]
push ebp
xor ebp, ebp
lea ebx, [esi + 8]
mov eax, dword [ebx]
test eax, eax
je 0x100a07a0
lea ecx, [esp + 0x24]
push ecx
push eax
lea esi, [ebx + 0x208]
push esi
call fcn.10069b60
add esp, 4
push eax
push esi
call fcn.10069b70
add esp, 4
push eax
call fcn.100a0a50
push esi
mov dword [esp + 0x30], eax
mov dword [esp + ebp*4 + 0x28], eax
call fcn.10069b10
mov eax, dword [esp + 0x30]
add esp, 0x14
test eax, eax
je 0x100a079c
cmp eax, 0xd
ja 0x100a076b
mov ecx, dword [eax*4 + 0x100e686c]
jmp 0x100a0770
mov ecx, str.bad_error_code
mov esi, dword [esp + 0x10]
mov edx, str.AAAA
cmp dword [ebx], 1
mov eax, 0x100e6a24
cmovne eax, edx
push dword [esi + 0x444]
push eax
push ecx
push str.DOH:__s_type__s_for__s_n
push edi
call fcn.10072d10
add esp, 0x14
jmp 0x100a07a0
mov esi, dword [esp + 0x10]
inc ebp
add ebx, 0x21c
cmp ebp, 2
jl 0x100a0715
cmp dword [esp + 0x14], 0
mov ebp, 6
je 0x100a07c7
cmp dword [esp + 0x18], 0
jne 0x100a089e
push dword [esi + 0x444]
push str.DOH_Host_name:__s_n
push edi
call fcn.10072d10
lea eax, [esp + 0x30]
push eax
push edi
call fcn.100a1660
push dword [esi + 0x440]
lea eax, [esp + 0x3c]
push dword [esi + 0x444]
push eax
call fcn.100a0900
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x100a0845
xor esi, esi
cmp dword [esp + 0x24c], esi
jle 0x100a0827
lea edi, [esp + 0x24]
push edi
call fcn.10069b10
inc esi
add esp, 4
add edi, 0x10
cmp esi, dword [esp + 0x24c]
jl 0x100a0811
mov eax, 0x1b
pop ebp
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.100ab558
add esp, 0x244
ret
cmp dword [edi + 0x78], 0
je 0x100a0858
push 2
push 3
push edi
call fcn.100772d0
add esp, 0xc
push dword [esi + 0x440]
push dword [esi + 0x444]
push ebx
push edi
call fcn.1007a970
add esp, 0x10
mov esi, eax
cmp dword [edi + 0x78], 0
je 0x100a0881
push 3
push edi
call fcn.10077310
add esp, 8
test esi, esi
jne 0x100a0890
push ebx
call fcn.100865b0
add esp, 4
jmp 0x100a089e
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [edi + 0x9bc], esi
mov dword [eax], esi
xor esi, esi
cmp dword [esp + 0x24c], esi
jle 0x100a08c6
lea ebx, [esp + 0x24]
nop dword [eax]
push ebx
call fcn.10069b10
inc esi
add esp, 4
add ebx, 0x10
cmp esi, dword [esp + 0x24c]
jl 0x100a08b0
push dword [edi + 0x138]
call dword [0x1010604c]
add esp, 4
mov dword [edi + 0x138], 0
mov eax, ebp
jmp 0x100a082c
mov ecx, dword [esp + 0x248]
xor eax, eax
pop esi
pop edi
xor ecx, esp
call fcn.100ab558
add esp, 0x244
ret