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

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x640844]
xor eax, esp
mov dword [esp + 0x2bc], eax
mov eax, dword [esp + 0x2c8]
push ebx
push esi
mov esi, dword [esp + 0x2cc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esi]
mov dword [eax], 0
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x154]
test eax, eax
jne 0x5559a7
cmp dword [ebx + 0x368], eax
jne 0x5559a7
push dword [esi + 0x484]
push str.Could_not_DOH_resolve:__s
push ebx
call fcn.0052aac0
mov eax, dword [esi + 0x29c]
add esp, 0xc
and al, 0x20
movzx eax, al
neg eax
pop esi
sbb eax, eax
add eax, 6
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x2c0
ret
cmp dword [ebx + 0x57c], 0
jne 0x555e2b
push ebp
push edi
push eax
push dword [ebx + 0x78]
call fcn.0051c700
push dword [ebx + 0x154]
call fcn.00525a70
push dword [ebx + 0x368]
push dword [ebx + 0x78]
call fcn.0051c700
push dword [ebx + 0x368]
call fcn.00525a70
push 0x218
lea eax, [esp + 0x50]
push 0
push eax
call fcn.004ef230
lea eax, [esp + 0x54]
mov dword [esp + 0x54], SysReAllocString
push eax
push dword [ebx + 0x158]
push dword [ebx + 0x364]
push dword [ebx + 0x360]
call fcn.00555f20
push dword [ebx + 0x360]
mov edi, eax
call dword [0x6412b4]
add esp, 0x38
mov ebp, 0x5dfe30
mov edx, str.AAAA
test edi, edi
je 0x555a6c
cmp edi, 0xc
ja 0x555a45
mov ecx, dword [edi*4 + 0x5fb720]
jmp 0x555a4a
mov ecx, str.bad_error_code
push dword [ebx + 0x580]
cmp dword [ebx + 0x158], 1
mov eax, ebp
cmovne eax, edx
push eax
push ecx
push str.DOH:__s_type__s_for__s_n
push ebx
call fcn.0052abb0
add esp, 0x14
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x36c]
push dword [ebx + 0x578]
push dword [ebx + 0x574]
call fcn.00555f20
push dword [ebx + 0x574]
mov esi, eax
call dword [0x6412b4]
add esp, 0x14
test esi, esi
je 0x555ad5
cmp esi, 0xc
ja 0x555aab
mov eax, dword [esi*4 + 0x5fb720]
jmp 0x555ab0
mov eax, str.bad_error_code
push dword [ebx + 0x580]
cmp dword [ebx + 0x36c], 1
mov ecx, str.AAAA
cmovne ebp, ecx
push ebp
push eax
push str.DOH:__s_type__s_for__s_n
push ebx
call fcn.0052abb0
add esp, 0x14
test edi, edi
je 0x555ae1
test esi, esi
jne 0x555db0
push dword [ebx + 0x580]
push str.DOH_Host_name:__s_n
push ebx
call fcn.0052abb0
push dword [esp + 0x3c]
push str.TTL:__u_seconds_n
push ebx
call fcn.0052abb0
mov eax, dword [esp + 0x4c]
add esp, 0x18
test eax, eax
jle 0x555c02
lea ebp, [esp + 0x3e]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov esi, eax
nop
mov eax, dword [ebp - 6]
cmp eax, 1
jne 0x555b4f
movzx eax, byte [ebp + 1]
push eax
movzx eax, byte [ebp]
push eax
movzx eax, byte [ebp - 1]
push eax
movzx eax, byte [ebp - 2]
push eax
push str.DOH_A:__u._u._u._u_n
push ebx
call fcn.0052abb0
add esp, 0x18
jmp 0x555bee
cmp eax, 0x1c
jne 0x555bee
push str.DOH_AAAA:
lea eax, [esp + 0x250]
push 0x80
push eax
call fcn.00539530
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x262]
add esp, 0xc
xor esi, esi
mov ebp, 0x76
add ebx, 0xfffffffe
movzx eax, byte [ebx + 1]
test esi, esi
push eax
movzx eax, byte [ebx]
mov ecx, 0x5de8c4
push eax
mov eax, 0x5e2c4c
cmove eax, ecx
push eax
push str._s_02x_02x
push ebp
push edi
call fcn.00539530
mov eax, edi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x555bb4
sub eax, edx
add esi, 2
sub ebp, eax
add edi, eax
add ebx, 2
cmp esi, 0x10
jl 0x555b87
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x24c]
push eax
push 0x5f1cc0
push ebx
call fcn.0052abb0
mov ebp, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0x14]
add ebp, 0x14
sub esi, 1
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
jne 0x555b20
mov edi, dword [esp + 0x218]
test edi, edi
jle 0x555c2c
lea esi, [esp + 0x220]
push dword [esi]
push str.CNAME:__s_n
push ebx
call fcn.0052abb0
add esp, 0xc
lea esi, [esi + 0xc]
sub edi, 1
jne 0x555c14
mov eax, dword [ebx + 0x584]
xor esi, esi
mov dword [esp + 0x1c], eax
xor ebp, ebp
mov eax, dword [ebx + 0x580]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
cmp dword [esp + 0x34], esi
jle 0x555e17
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], eax
lea edx, [esi + 2]
lea edi, [esi + 0x10]
mov ecx, dword [eax - 4]
mov eax, 0x17
cmp ecx, 0x1c
push 0x20
cmovne eax, edx
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, 0x1c
cmovne eax, edi
push 1
mov dword [esp + 0x1c], eax
call dword [0x6412c0]
mov edi, eax
add esp, 8
test edi, edi
je 0x555e0e
push dword [esp + 0x20]
call dword [0x6412bc]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x555e04
push dword [esp + 0x14]
push 1
call dword [0x6412c0]
add esp, 8
mov dword [edi + 0x18], eax
test eax, eax
je 0x555def
test ebp, ebp
cmove ebp, edi
test esi, esi
je 0x555cd6
mov dword [esi + 0x1c], edi
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
movzx eax, dx
mov dword [edi + 4], eax
mov dword [edi + 8], 1
mov dword [edi + 0x10], ecx
sub eax, 2
je 0x555d08
sub eax, 0x15
jne 0x555d25
mov eax, dword [esp + 0x10]
mov esi, dword [edi + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
jmp 0x555d14
mov eax, dword [esp + 0x10]
mov esi, dword [edi + 0x18]
mov eax, dword [eax]
mov dword [esi + 4], eax
push dword [esp + 0x1c]
mov word [esi], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov ecx, dword [esp + 0x18]
mov edx, 2
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x14
mov dword [esp + 0x18], ecx
mov esi, edi
mov dword [esp + 0x10], eax
lea edi, [edx + 0xe]
cmp ecx, dword [esp + 0x34]
jl 0x555c60
test ebp, ebp
je 0x555e17
cmp dword [ebx + 0x80], 0
je 0x555d6a
push edx
push 3
push ebx
call fcn.0052ea40
add esp, 0xc
push dword [ebx + 0x584]
push dword [ebx + 0x580]
push ebp
push ebx
call fcn.00531f00
add esp, 0x10
mov esi, eax
cmp dword [ebx + 0x80], 0
je 0x555d96
push 3
push ebx
call fcn.0052ea80
add esp, 8
lea eax, [esp + 0x30]
push eax
call fcn.00555ee0
add esp, 4
test esi, esi
jne 0x555ddb
push ebp
call fcn.0053b3f0
add esp, 4
lea eax, [esp + 0x30]
push eax
call fcn.00555ee0
add esp, 4
mov eax, 6
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x2c0
ret
mov eax, dword [esp + 0x28]
mov dword [eax + 0x48c], esi
mov eax, dword [esp + 0x2c]
mov dword [eax], esi
xor eax, eax
jmp 0x555dc2
push dword [edi + 0x14]
call dword [0x6412b4]
push edi
call dword [0x6412b4]
add esp, 8
jmp 0x555e0e
push edi
call dword [0x6412b4]
add esp, 4
push ebp
call fcn.0053b3f0
add esp, 4
lea eax, [esp + 0x30]
push eax
call fcn.00555ee0
add esp, 4
mov eax, 0x1b
jmp 0x555dc2
mov ecx, dword [esp + 0x2c4]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.004ed0cc
add esp, 0x2c0
ret