Function at 0x40ebe0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x457e78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
lea eax, [edi - 1]
cmp eax, 3
ja case.default.0x40ec16
jmp dword [eax*4 + 0x40eeb8]
push 1
push 0x4767ac
jmp 0x40ec3f
push 2
push 0x472da8
jmp 0x40ec3f
push 3
push 0x472db0
jmp 0x40ec3f
push 4
push 0x472d98
lea ebp, [ebx + 0x1ac]
mov ecx, ebp
call fcn.0042fced
test eax, eax
je case.default.0x40ec16
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0x1a4]
push ecx
lea esi, [ebx + 0x1a0]
push esi
push 0
mov ecx, ebp
mov dword [ebx + 0x244], edi
call fcn.0042f4ec
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push edx
push 0x8000000
push eax
push 0
mov ecx, ebp
call fcn.0042fbe1
cmp edi, 1
jle 0x40eca3
push 0x78
push 0
push 0x96
push 1
mov ecx, ebp
call fcn.0042fbe1
cmp edi, 2
jle 0x40ecbd
push 0x96
push 0
push 0x97
push 2
mov ecx, ebp
call fcn.0042fbe1
cmp edi, 3
jle 0x40ecd4
push 0x1e
push 0
push 0xe701
push 3
mov ecx, ebp
call fcn.0042fbe1
cmp edi, 2
jle 0x40ee5d
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ecf7
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 0
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ed29
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], 1
mov dword [esp + 0x1c], 0x12c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x12c
or eax, ecx
jge 0x40ed6c
push 0x12c
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test esi, esi
jne 0x40ed80
xor eax, eax
jmp 0x40ed9a
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ed85
sub eax, edx
sar eax, 1
js 0x40ee8a
cmp eax, dword [esi - 8]
jg 0x40ee8a
push 0x4640f8
mov dword [esi - 0xc], eax
push 0x4640fc
lea edi, [esp + 0x28]
mov word [esi + eax*2], 0
call fcn.0040c350
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.00402930
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40edf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00407380
mov edi, dword [esp + 0x10]
push 1
push edi
push 2
mov ecx, ebp
call fcn.0042f93f
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x34]
cmp edi, 1
jle 0x40ee94
mov ecx, dword [ebx + 0x20]
push 0
push 0x3e8
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
push 0x80070057
call fcn.00402660
mov edx, dword [ebx + 0x20]
push 1
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4