Function at 0x1045020
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x104c68c]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x370], ecx
mov dword [ebp - 0x138], 0
lea eax, [ebp - 0x350]
mov dword [ebp - 0x360], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 8], 0x80
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.01044760
add esp, 8
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x10450d3
push 0x100cd78
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov eax, dword [ebp - 0x138]
jmp 0x1045487
mov edx, dword [ebp - 0x370]
mov eax, dword [edx + 0x108]
add eax, 0x478
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x364], ecx
mov ecx, dword [ebp - 0x370]
call fcn.01043390
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x370]
call fcn.010433d0
mov dword [ebp - 0x35c], eax
mov dword [ebp - 0x368], 0
jmp 0x104512d
mov edx, dword [ebp - 0x368]
add edx, 1
mov dword [ebp - 0x368], edx
cmp dword [ebp - 0x368], 4
jae 0x1045451
push 0x20a
mov eax, dword [ebp - 0x360]
push eax
mov ecx, dword [ebp - 0x368]
mov edx, dword [ecx*4 + 0x104c160]
push edx
call fcn.01044e80
add esp, 0xc
test eax, eax
jne 0x104518c
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x100cc98
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov eax, dword [ebp - 0x138]
jmp 0x1045487
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x360]
push edx
call fcn.01044da0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10451d7
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0x100cc98
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov eax, dword [ebp - 0x138]
jmp 0x1045487
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x364]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x364]
mov edx, dword [ebp - 0x354]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x368]
imul eax, eax, 0x118
mov ecx, dword [ebp - 0x35c]
lea edx, [ecx + eax + 8]
mov dword [ebp - 0x358], edx
mov eax, dword [ebp - 0x358]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x368]
shl edx, 1
mov eax, dword [ebp - 0x368]
shl eax, 1
mov ecx, dword [edx*4 + 0x104c144]
sub ecx, dword [eax*4 + 0x104c140]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x364]
add edx, 0x40
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x36c], 0
jmp 0x104528a
mov eax, dword [ebp - 0x36c]
add eax, 1
mov dword [ebp - 0x36c], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x128
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x36c]
cmp edx, dword [ebp - 0x10]
jae 0x104534f
mov eax, dword [ebp - 0x13c]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x104c180]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.01044da0
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x354], ecx
cmp dword [ebp - 4], 0xffffffff
jne 0x10452ff
push 0x100cd18
push 1
push 0x3e9
call fcn.010429b0
add esp, 0xc
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x138]
jmp 0x1045487
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.010454a0
mov ecx, dword [ebp - 0x18]
add ecx, 8
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x354]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.01044f80
mov eax, dword [ebp - 0x1c]
add eax, 0x28
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x104526f
mov edx, dword [ebp - 0x364]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x364]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x364]
mov dword [eax + 8], 0x40
mov ecx, dword [ebp - 0x364]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x364]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 0x364]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 0x364]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 0x364]
mov ecx, dword [ebp - 0x368]
mov edx, dword [ecx*4 + 0x104c170]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x364]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x360]
push ecx
push 0x80
mov edx, dword [ebp - 0x358]
add edx, 8
push edx
call fcn.01010390
mov eax, dword [ebp - 0x370]
mov ecx, dword [ebp - 0x364]
sub ecx, dword [eax + 0x108]
mov edx, dword [ebp - 0x358]
mov dword [edx + 0x108], ecx
mov eax, dword [ebp - 0x364]
add eax, 0x40
mov ecx, dword [ebp - 0x370]
sub eax, dword [ecx + 0x108]
mov edx, dword [ebp - 0x358]
mov dword [edx + 0x10c], eax
mov eax, dword [ebp - 0x358]
mov dword [eax + 0x110], 0xffffffff
mov ecx, dword [ebp - 0x358]
mov dword [ecx + 0x114], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x364], edx
jmp 0x104511e
mov eax, dword [ebp - 0x35c]
mov dword [eax], 4
mov ecx, dword [ebp - 0x370]
mov edx, dword [ebp - 0x14]
sub edx, dword [ecx + 0x108]
mov eax, dword [ebp - 0x134]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.010471ba
mov esp, ebp
pop ebp
ret