Function at 0x40f0b0
Capabilities:
Reference cloudflare dns server

Disassembly:
sub esp, 0x148
mov eax, dword [esp + 0x14c]
mov ecx, dword [0x424508]
cmp eax, 2
push ebx
mov word [esp + 4], ax
mov dword [esp + 0x10], ecx
jne 0x40f102
mov eax, dword [0x429590]
test eax, eax
je 0x40f485
mov edx, dword [0x4244dc]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0xc], 0x423e98
mov dword [esp + 0x10], edx
call eax
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 3
jne 0x40f12f
mov eax, dword [0x429590]
test eax, eax
je 0x40f485
mov edx, dword [0x429490]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x1c], edx
call eax
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 4
jne 0x40f14b
mov eax, dword [0x429590]
test eax, eax
jne 0x40f47e
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 1
jne 0x40f18f
mov eax, dword [0x429590]
xor ebx, ebx
cmp eax, ebx
jne 0x40f165
mov al, 1
pop ebx
add esp, 0x148
ret
lea ecx, [esp + 4]
push ecx
call eax
mov edx, dword [0x42958c]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x42958c], ebx
mov dword [0x429590], ebx
mov al, 1
pop ebx
add esp, 0x148
ret
xor ebx, ebx
cmp eax, ebx
jne 0x40f28f
test byte [0x428684], 4
je 0x40f1b3
push 3
push 1
push 0x41eb60
call fcn.00404dd0
add esp, 0xc
cmp dword [0x42958c], ebx
je 0x40f1c5
mov al, 1
pop ebx
add esp, 0x148
ret
push str.drcomdll.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [0x42958c], eax
jne 0x40f20c
push str.drcomdll.dll
lea eax, [esp + 0xd0]
push str._tLoadLibrary____s___error
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0xd8]
push ebx
push ecx
call fcn.00409d30
add esp, 0x14
mov al, 1
pop ebx
add esp, 0x148
ret
push str.GetInfo
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
mov dword [0x429590], eax
jne 0x40f24c
mov edx, dword [0x42958c]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push ebx
push str.GetDll_error
mov dword [0x42958c], ebx
call fcn.00409d30
add esp, 8
mov al, 1
pop ebx
add esp, 0x148
ret
mov ecx, dword [0x428cd4]
lea edx, [esp + 4]
push edx
mov dword [esp + 0x18], ecx
call eax
mov eax, dword [esp + 6]
and eax, 0xffff
push eax
push str._u_lu_
push 0x4273fc
call dword [sym.imp.USER32.dll_wsprintfA]
push ebx
push 0x4273fc
call fcn.00409d30
add esp, 0x14
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 5
je 0x40f48f
cmp eax, 8
je 0x40f48f
cmp eax, 6
jne 0x40f301
mov eax, dword [0x429590]
cmp eax, ebx
jne 0x40f2d4
mov ecx, dword [0x42762c]
mov edx, dword [0x427628]
push ecx
push 0x427630
push edx
call fcn.00406d80
add esp, 0xc
mov al, 1
pop ebx
add esp, 0x148
ret
mov ecx, dword [0x42762c]
mov edx, dword [0x427628]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0xc], 0x427630
mov dword [esp + 0x1c], edx
call eax
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 7
jne 0x40f326
mov eax, dword [0x429590]
mov byte [esp + 0x1c], bl
cmp eax, ebx
je 0x40f31a
lea edx, [esp + 4]
push edx
call eax
mov al, byte [esp + 0x1c]
pop ebx
add esp, 0x148
ret
cmp eax, 9
jne 0x40f33d
mov eax, dword [0x429590]
cmp eax, ebx
pop ebx
setne al
add esp, 0x148
ret
cmp eax, 0xa
jne 0x40f466
mov eax, dword [0x429590]
cmp eax, ebx
jne 0x40f384
push str.drcomdll.dll
lea eax, [esp + 0xd0]
push str.can_not_open__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
lea ecx, [esp + 0xdc]
push ebx
push ecx
call fcn.00409af0
add esp, 0x18
xor al, al
pop ebx
add esp, 0x148
ret
lea edx, [esp + 4]
push edx
call eax
mov al, byte [esp + 0x1c]
cmp al, bl
mov eax, dword [0x42842c]
je 0x40f44a
cmp eax, ebx
jne 0x40f440
cmp byte [esp + 0x20], bl
je 0x40f440
push esi
push edi
mov edi, str.1.1.1.1
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x428cac
mov eax, ecx
mov esi, edi
mov edi, 0x428cac
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040af30
add esp, 4
push eax
call fcn.004051a0
lea ecx, [esp + 0x30]
push 0x1a
lea edx, [esp + 0xb4]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, 0x41f304
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd6]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xbc]
push ecx
call fcn.00414710
push 1
call fcn.0040f8e0
add esp, 0x1c
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 0xa
jl 0x40f45c
push str.AntiProxyModule_Call_error
call fcn.004051d0
add esp, 4
mov al, 1
pop ebx
add esp, 0x148
ret
cmp eax, 0xc
jne 0x40f485
mov eax, dword [0x429590]
cmp eax, ebx
jne 0x40f47e
mov al, 1
pop ebx
add esp, 0x148
ret
lea edx, [esp + 4]
push edx
call eax
mov al, 1
pop ebx
add esp, 0x148
ret
mov eax, dword [0x429590]
cmp eax, ebx
jne 0x40f4a2
mov al, 1
pop ebx
add esp, 0x148
ret
mov ecx, dword [0x4244dc]
mov edx, dword [0x429490]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0xc], 0x423e98
mov byte [esp + 0x20], 1
mov dword [esp + 0x1c], edx
call eax
mov al, byte [esp + 0x1c]
cmp al, bl
jne 0x40f4e2
mov dword [0x429438], ebx
mov dword [0x429430], 5
pop ebx
add esp, 0x148
ret