Function at 0x446640
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a79fb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x4cf084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x4466af
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x4466a5
test byte [eax + 0x1c], 1
je 0x4466a5
cmp byte [eax + 0x19], 1
jb 0x4466a5
push dword [eax + 0x14]
mov edx, 0x4bcb48
lea ecx, [ebx + 0xa]
push dword [eax + 0x10]
call fcn.00401940
add esp, 8
mov eax, 0xfffffffc
jmp 0x4468ac
test edi, edi
jne 0x4466e9
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x4466a5
test byte [eax + 0x1c], 1
je 0x4466a5
cmp byte [eax + 0x19], 1
jb 0x4466a5
push dword [eax + 0x14]
mov edx, 0x4bcb48
lea ecx, [edi + 0xc]
push dword [eax + 0x10]
call fcn.00401940
add esp, 8
lea eax, [edi - 4]
jmp 0x4468ac
push 0x40
push 0
push edi
call fcn.0047a230
add esp, 0xc
mov dword [ebp - 0x214], 0x40
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x446750
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x446748
test byte [eax + 0x1c], 1
je 0x446748
cmp byte [eax + 0x19], 1
jb 0x446748
push dword [eax + 0x14]
mov edx, 0x4bcb48
mov ecx, 0xe
push dword [eax + 0x10]
call fcn.00401940
add esp, 8
or eax, 0xffffffff
jmp 0x4468ac
mov ecx, dword [ebp - 0x214]
cmp ecx, 0x40
jbe 0x446796
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x44678e
test byte [eax + 0x1c], 1
je 0x44678e
cmp byte [eax + 0x19], 1
jb 0x44678e
push ecx
push 0x40
push dword [eax + 0x14]
mov edx, 0x4bcb48
mov ecx, 0xf
push dword [eax + 0x10]
call fcn.00401990
add esp, 0x10
or eax, 0xffffffff
jmp 0x4468ac
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.004485e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x21c]
cmovae ecx, dword [ebp - 0x22c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x22c]
cmovae ecx, dword [ebp - 0x22c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x244]
call fcn.00441a10
cmp dword [ebp - 0x230], 0x10
lea eax, [ebp - 0x244]
push dword [ebp - 0x214]
mov esi, dword [ebp - 0x244]
cmovae eax, esi
push eax
push edi
call fcn.00479730
mov eax, dword [ebp - 0x230]
add esp, 0xc
cmp eax, 0x10
jb 0x446843
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x446839
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4468c8
push ecx
push esi
call fcn.00477197
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x218]
cmp edx, 8
jb 0x446886
mov ecx, dword [ebp - 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44687c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4468cd
push edx
push ecx
call fcn.00477197
add esp, 8
xor eax, eax
mov dword [ebp - 0x21c], 0
mov ecx, ebx
mov dword [ebp - 0x218], 7
mov word [ebp - 0x22c], ax
call fcn.004468e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477156
mov esp, ebp
pop ebp
ret
call fcn.004822a9
call fcn.004822a9
int3