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

Disassembly:
sub esp, 0x244
mov eax, dword [0x53b0f8]
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 0x496e46
mov eax, 0x1b
pop edi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00434475
add esp, 0x244
ret
cmp dword [eax + 4], 0
push esi
lea esi, [eax + 4]
jne 0x496e95
cmp dword [eax + 0x220], 0
jne 0x496e95
push dword [edi + 0x9d0]
push str.Could_not_DoH_resolve:__s
push edi
call fcn.004673c0
mov ecx, dword [edi + 0xc]
add esp, 0xc
xor eax, eax
cmp byte [ecx + 0x275], al
pop esi
sete al
add eax, 5
pop edi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00434475
add esp, 0x244
ret
cmp dword [eax + 0x43c], 0
jne 0x4970f6
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.00459670
push esi
call fcn.00462370
add esp, 0xc
add esi, 0x21c
sub ebx, 1
jne 0x496ec0
push 0x22c
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.004a2c70
add esp, 0xc
mov dword [esp + 0x244], getsockname
lea esi, [esp + 0x20]
mov ebx, 4
push 0x100
push esi
call fcn.0045f1b0
add esp, 8
add esi, 0x10
sub ebx, 1
jne 0x496f05
mov esi, dword [esp + 0xc]
push ebp
xor ebp, ebp
lea ebx, [esi + 8]
mov eax, dword [ebx]
test eax, eax
je 0x496fb0
lea ecx, [esp + 0x24]
push ecx
push eax
lea esi, [ebx + 0x208]
push esi
call fcn.0045f1d0
add esp, 4
push eax
push esi
call fcn.0045f210
add esp, 4
push eax
call fcn.004972d0
push esi
mov dword [esp + 0x30], eax
mov dword [esp + ebp*4 + 0x28], eax
call fcn.0045f180
mov eax, dword [esp + 0x30]
add esp, 0x14
test eax, eax
je 0x496fac
cmp eax, 0xd
ja 0x496f7b
mov ecx, dword [eax*4 + 0x51f3a4]
jmp 0x496f80
mov ecx, str.bad_error_code
mov esi, dword [esp + 0x10]
mov edx, str.AAAA
cmp dword [ebx], 1
mov eax, 0x51f54c
cmovne eax, edx
push dword [esi + 0x444]
push eax
push ecx
push str.DoH:__s_type__s_for__s
push edi
call fcn.00467490
add esp, 0x14
jmp 0x496fb0
mov esi, dword [esp + 0x10]
inc ebp
add ebx, 0x21c
cmp ebp, 2
jl 0x496f25
cmp dword [esp + 0x14], 0
mov ebp, 6
je 0x496fd7
cmp dword [esp + 0x18], 0
jne 0x4970ae
push dword [esi + 0x444]
push str.DoH_Host_name:__s
push edi
call fcn.00467490
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00497ec0
push dword [esi + 0x440]
lea eax, [esp + 0x3c]
push dword [esi + 0x444]
push eax
call fcn.00497180
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x497055
xor esi, esi
cmp dword [esp + 0x24c], esi
jle 0x497037
lea edi, [esp + 0x24]
push edi
call fcn.0045f180
inc esi
add esp, 4
add edi, 0x10
cmp esi, dword [esp + 0x24c]
jl 0x497021
mov eax, 0x1b
pop ebp
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00434475
add esp, 0x244
ret
cmp dword [edi + 0x78], 0
je 0x497068
push 2
push 3
push edi
call fcn.0046d630
add esp, 0xc
push dword [esi + 0x440]
push dword [esi + 0x444]
push ebx
push edi
call fcn.004715f0
add esp, 0x10
mov esi, eax
cmp dword [edi + 0x78], 0
je 0x497091
push 3
push edi
call fcn.0046d670
add esp, 8
test esi, esi
jne 0x4970a0
push ebx
call fcn.0047b150
add esp, 4
jmp 0x4970ae
mov eax, dword [esp + 0x20]
xor ebp, ebp
mov dword [edi + 0x9d4], esi
mov dword [eax], esi
xor esi, esi
cmp dword [esp + 0x24c], esi
jle 0x4970d6
lea ebx, [esp + 0x24]
nop dword [eax]
push ebx
call fcn.0045f180
inc esi
add esp, 4
add ebx, 0x10
cmp esi, dword [esp + 0x24c]
jl 0x4970c0
push dword [edi + 0x138]
call dword [0x53b128]
add esp, 4
mov dword [edi + 0x138], 0
mov eax, ebp
jmp 0x49703c
mov ecx, dword [esp + 0x248]
xor eax, eax
pop esi
pop edi
xor ecx, esp
call fcn.00434475
add esp, 0x244
ret