Function at 0x10005790
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b6bd
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10050828]
cmp eax, 0xffffffff
jne 0x10005e51
mov eax, dword [0x1005233c]
test eax, eax
jne 0x100057de
call fcn.10004ce0
mov eax, dword [0x1005233c]
cmp eax, 6
jae 0x100057f4
mov dword [0x10050828], 0
xor eax, eax
jmp 0x10005e51
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - method.CCritical.virtual_0], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 2
call fcn.10005e70
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x240]
push eax
mov byte [ebp - 4], 3
call fcn.100062a0
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.10008140
mov edi, dword [ebp - 0x254]
test eax, eax
je 0x100058bf
mov dword [0x10050828], 1
jmp 0x10005d2c
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008140
test eax, eax
je 0x100058e4
mov dword [0x10050828], 1
jmp 0x10005d2c
test edi, edi
je 0x10005aea
cmp dword [ebp - 0x25c], 0
je 0x10005aea
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x220]
call fcn.10007610
mov byte [ebp - 4], 5
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x1000592c
push 1
push 0x10045df0
call fcn.100077c0
jmp 0x10005969
mov eax, dword [ebp - 0x21c]
inc eax
push eax
call fcn.10007b10
test eax, eax
je 0x10005969
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
sub eax, ecx
push 0x10045df0
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
inc dword [ebp - 0x21c]
mov esi, edi
lea ecx, [esi + 2]
mov edi, edi
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005970
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005997
push esi
push edi
call fcn.100077c0
jmp 0x100059d1
mov eax, dword [ebp - 0x21c]
add eax, esi
push eax
call fcn.10007b10
test eax, eax
je 0x100059d1
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
sub eax, ecx
push edi
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [ebp - 0x21c], esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008140
test eax, eax
jne 0x10005d17
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x220]
call fcn.100078d0
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005a1a
push 1
push 0x10045df0
call fcn.100077c0
jmp 0x10005a57
mov eax, dword [ebp - 0x21c]
inc eax
push eax
call fcn.10007b10
test eax, eax
je 0x10005a57
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
sub eax, ecx
push 0x10045df0
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
inc dword [ebp - 0x21c]
mov esi, edi
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005a60
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005a87
push esi
push edi
call fcn.100077c0
jmp 0x10005ac1
mov eax, dword [ebp - 0x21c]
add eax, esi
push eax
call fcn.10007b10
test eax, eax
je 0x10005ac1
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
sub eax, ecx
push edi
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [ebp - 0x21c], esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008140
test eax, eax
jne 0x10005d17
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.100075d0
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x264], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x10005dff
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x220]
call fcn.10007610
mov byte [ebp - 4], 6
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005b43
push 1
push 0x10045df0
call fcn.100077c0
jmp 0x10005b80
mov eax, dword [ebp - 0x21c]
inc eax
push eax
call fcn.10007b10
test eax, eax
je 0x10005b80
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
sub eax, ecx
push 0x10045df0
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
inc dword [ebp - 0x21c]
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005b90
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005bbd
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.100077c0
jmp 0x10005bfd
mov eax, dword [ebp - 0x21c]
add eax, esi
push eax
call fcn.10007b10
test eax, eax
je 0x10005bfd
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x218]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [ebp - 0x21c], esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008140
test eax, eax
jne 0x10005d17
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x220]
call fcn.100078d0
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005c46
push 1
push 0x10045df0
call fcn.100077c0
jmp 0x10005c83
mov eax, dword [ebp - 0x21c]
inc eax
push eax
call fcn.10007b10
test eax, eax
je 0x10005c83
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x218]
sub eax, ecx
push 0x10045df0
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
inc dword [ebp - 0x21c]
lea esi, [ebp - 0x210]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10005c90
sub esi, ecx
sar esi, 1
cmp dword [ebp - 0x214], 0
lea ecx, [ebp - 0x220]
jne 0x10005cbd
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.100077c0
jmp 0x10005cfd
mov eax, dword [ebp - 0x21c]
add eax, esi
push eax
call fcn.10007b10
test eax, eax
je 0x10005cfd
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x218]
sub eax, ecx
push eax
mov eax, dword [ebp - 0x214]
lea eax, [eax + ecx*2]
push eax
call fcn.10023e83
add esp, 0xc
add dword [ebp - 0x21c], esi
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
call fcn.10008140
test eax, eax
je 0x10005df4
lea ecx, [ebp - 0x220]
mov dword [0x10050828], 1
call fcn.100075d0
mov eax, dword [ebp - 0x234]
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x10005d49
push eax
call fcn.1002354a
add esp, 4
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
mov dword [ebp - method.CStringBufferW.virtual_0], vtable.CStringBufferW.0
test eax, eax
je 0x10005d8e
push eax
call fcn.1002354a
add esp, 4
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - method.CSeed.virtual_0], vtable.CSeed.0
test edi, edi
je 0x10005dc3
push edi
call fcn.1002354a
add esp, 4
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x10005dd6
push eax
call fcn.1002354a
add esp, 4
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - method.CCritical.virtual_0], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
jmp 0x10005e51
lea ecx, [ebp - 0x220]
call fcn.100075d0
lea ecx, [ebp - 0x240]
mov dword [0x10050828], 0
call fcn.100075d0
lea ecx, [ebp - 0x230]
call fcn.100075d0
lea ecx, [ebp - 0x260]
call fcn.100075d0
lea ecx, [ebp - 0x250]
call fcn.100075d0
lea eax, [ebp - 0x27c]
push eax
mov dword [ebp - method.CCritical.virtual_0], vtable.CCritical.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x10050828]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret