Function at 0x4382ae
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd18a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x18cc
call fcn.00494070
push edi
push str._Read_SoftAP_Profile_
call fcn.0040d6f5
add esp, 4
cmp dword [0x5d4014], 0
je 0x4382f8
mov eax, dword [ebp + 8]
push eax
call fcn.0043806d
add esp, 4
jmp 0x4386b1
mov dword [ebp - 0x14], 0
cmp dword [0x5d4000], 1
jne 0x438311
mov dword [ebp - 0x14], 0x530ce8
jmp 0x438339
xor ecx, ecx
mov cl, byte [0x5d4379]
test ecx, ecx
je 0x438332
xor edx, edx
mov dl, byte [0x5b8441]
test edx, edx
jne 0x438332
mov dword [ebp - 0x14], 0x530cf4
jmp 0x438339
mov dword [ebp - 0x14], 0x530d04
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00438b76
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x4385a8
push 0x440
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00493430
add esp, 0xc
xor ecx, ecx
mov cl, byte [0x5d4379]
test ecx, ecx
je 0x438425
xor edx, edx
mov dl, byte [0x5b8441]
test edx, edx
jne 0x438425
push 0x5d426c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0x1770
push 0
lea ecx, [ebp - 0x1894]
push ecx
call fcn.00493430
add esp, 0xc
lea edx, [ebp - 0x1894]
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], 0xbb8
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.RtlLib.dll_RT_ACM_SoftAP_GetProfile]
add esp, 8
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x438405
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.RtlLib.dll_RT_ACM_XMLtoProfile]
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
and edx, 0xffffffef
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438971
add esp, 4
jmp 0x4386b1
push 0x5d416c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea ecx, [ebp - 0x18]
call fcn.00406f30
mov dword [ebp - 4], 0
cmp dword [0x5d4000], 1
jne 0x4384c2
mov byte [ebp - 0x18b4], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x18b3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x20
push 0
lea eax, [ebp - 0x18b4]
push eax
call fcn.00493430
add esp, 0xc
lea ecx, [ebp - 0x18b4]
push ecx
call dword [sym.imp.RtlLib.dll_RT_GetMacAddressString]
add esp, 4
lea edx, [ebp - 0x18b4]
push edx
call fcn.00493490
add esp, 4
cmp eax, 6
jbe 0x4384b7
lea eax, [ebp - 0x18b4]
push eax
push 0x530d10
lea ecx, [ebp - 0x18]
push ecx
call fcn.004a988a
add esp, 0xc
mov edx, dword [ebp + 8]
mov word [edx + 0x60], 0x63
jmp 0x43850a
cmp dword [0x5d3fc0], 0x67
jl 0x4384de
push 0x100
lea eax, [ebp - 0x118]
push eax
call sub.WSOCK32.dll_gethostname
jmp 0x4384f2
push 0x100
lea ecx, [ebp - 0x118]
push ecx
call fcn.00437723
add esp, 8
lea edx, [ebp - 0x118]
push edx
push str._s_AP
lea eax, [ebp - 0x18]
push eax
call fcn.004a988a
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040d4c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00406f50
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x32
push ecx
call fcn.004930f0
add esp, 0xc
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x60]
test eax, eax
jne 0x438541
mov ecx, dword [ebp + 8]
mov word [ecx + 0x60], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
or al, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
and al, 0xf9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
and al, 0xfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
and ah, 0xf3
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
and al, 0xef
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00438971
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004ad0c0
jmp 0x4386a3
cmp dword [0x5d4000], 1
je 0x4385de
cmp dword [0x5d4000], 1
je 0x4385c7
cmp dword [0x5d4000], 2
jne 0x4386a3
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
call fcn.0044026e
add esp, 4
test eax, eax
je 0x4386a3
mov byte [ebp - 0x18d8], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x18d7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x18b8]
call fcn.00406f30
mov dword [ebp - 4], 1
push 0x20
push 0
lea ecx, [ebp - 0x18d8]
push ecx
call fcn.00493430
add esp, 0xc
lea edx, [ebp - 0x18d8]
push edx
call dword [sym.imp.RtlLib.dll_RT_GetMacAddressString]
add esp, 4
lea eax, [ebp - 0x18d8]
push eax
call fcn.00493490
add esp, 4
cmp eax, 6
jbe 0x43865b
lea ecx, [ebp - 0x18d8]
push ecx
push str.AiGuru__s_SP
lea edx, [ebp - 0x18b8]
push edx
call fcn.004a988a
add esp, 0xc
lea ecx, [ebp - 0x18b8]
call fcn.00406f50
push eax
mov eax, dword [ebp + 8]
add eax, 0x32
push eax
call fcn.004936f0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x5c]
and edx, 0xffffffef
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00438971
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18b8]
call fcn.004ad0c0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
and al, 0xef
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x5c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret