Function at 0x407810
Capabilities:
Get hostname

Disassembly:
mov eax, dword [0x4264a4]
sub esp, 0x28
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x407863
push str.NETAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x4264a4], eax
jne 0x407841
pop edi
pop esi
pop ebp
mov eax, 0x4c
pop ebx
add esp, 0x28
ret
push str.Netbios
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4264a0], eax
jne 0x407863
pop edi
pop esi
pop ebp
mov eax, 0x4c
pop ebx
add esp, 0x28
ret
push 0x426940
call fcn.00412e00
add esp, 4
test eax, eax
je 0x407891
push eax
push str._n_LanaEnum_failed:__d
push 0
call fcn.004102d0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push 0
push 0xfe
push 0xfe
push 0x426940
call fcn.00412e60
add esp, 0x10
test eax, eax
je 0x4078b6
push eax
push str._n_ResetAll_failed:__d
jmp 0x40787a
mov eax, dword [0x426940]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, 0xff
and eax, ebx
shl eax, 2
push eax
push 0x40
call ebp
test eax, eax
mov dword [0x4264a8], eax
jne 0x4078f4
push str._n_GlobalAlloc_:out_of_memory
push eax
call fcn.004102d0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor ecx, ecx
xor edx, edx
mov dword [0x426920], ecx
mov dword [esp + 0x24], edx
mov dword [0x426924], ecx
mov dword [esp + 0x28], edx
mov dword [0x426928], ecx
mov dword [esp + 0x2c], edx
mov dword [0x42692c], ecx
lea eax, [esp + 0x10]
mov dword [0x426930], ecx
mov dword [esp + 0x30], edx
mov word [0x426934], cx
lea ecx, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x18], 0x11
mov byte [esp + 0x3c], dl
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 0x24]
push edx
call fcn.0041ee60
lea eax, [esp + 0x28]
push eax
push str.RNBO__s
push 0x426920
call fcn.00413de0
mov edx, dword [0x426940]
add esp, 0x10
xor esi, esi
test dl, dl
jbe 0x4079a4
mov ecx, dword [0x4264a8]
xor edx, edx
mov dl, byte [esi + 0x426941]
add ecx, esi
push ecx
push 0x426920
push edx
call fcn.00412ef0
mov edx, dword [0x426940]
add esp, 0xc
mov eax, edx
inc esi
and eax, ebx
cmp esi, eax
jl 0x407976
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
and edx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x426488
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
shl edx, 6
mov ecx, 0x2af8
mov edi, 0x426a40
push edx
push 0x40
rep stosd dword es:[edi], eax
call ebp
mov ecx, dword [0x426940]
mov dword [0x4264b0], eax
and ecx, ebx
shl ecx, 6
push ecx
push 0x40
call ebp
mov edx, dword [0x426940]
mov dword [0x4264b4], eax
and edx, ebx
shl edx, 2
push edx
push 0
call ebp
mov dword [0x4264b8], eax
mov al, byte [0x426940]
xor esi, esi
test al, al
jbe 0x407a3a
push 0x200
push 0
call ebp
mov ecx, dword [0x4264b8]
inc esi
mov dword [ecx + esi*4 - 4], eax
mov edx, dword [0x426940]
and edx, ebx
cmp esi, edx
jl 0x407a1a
lea eax, [esp + 0x18]
push eax
call fcn.0040fd30
add esp, 4
test eax, eax
jne 0x407884
push eax
push eax
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x426938], eax
mov al, byte [0x426940]
xor esi, esi
test al, al
jbe 0x407b0d
xor edi, edi
mov edx, dword [0x4264b8]
push 0
xor ecx, ecx
push 0x4076b0
mov eax, dword [edx + esi*4]
mov edx, dword [0x4264a8]
push 0x200
push eax
mov cl, byte [edx + esi]
xor eax, eax
mov al, byte [esi + 0x426941]
push ecx
mov ecx, dword [0x4264b0]
push eax
lea edx, [edi + ecx]
push edx
call fcn.00412c70
add esp, 0x1c
test eax, eax
jne 0x407884
mov eax, dword [0x4264b8]
xor edx, edx
push 0x4076b0
push 0x200
mov ecx, dword [eax + esi*4]
mov eax, dword [0x4264a8]
push ecx
xor ecx, ecx
mov dl, byte [eax + esi]
mov cl, byte [esi + 0x426941]
push edx
mov edx, dword [0x4264b4]
push ecx
lea eax, [edi + edx]
push eax
call fcn.00412ce0
add esp, 0x18
test eax, eax
jne 0x407884
mov ecx, dword [0x426940]
inc esi
and ecx, ebx
add edi, 0x40
cmp esi, ecx
jl 0x407a73
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x426938]
push 0x3a98
push edx
call ebp
mov eax, dword [0x426938]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, byte [0x426940]
xor esi, esi
test al, al
jbe 0x407bd5
xor edi, edi
mov ecx, dword [0x4264b0]
lea eax, [edi + ecx]
mov cl, byte [edi + ecx + 0x31]
cmp cl, bl
je 0x407b83
mov edx, dword [0x4264b8]
push 0
push 0x4076b0
push 0x200
mov ecx, dword [edx + esi*4]
xor edx, edx
push ecx
mov ecx, dword [0x4264a8]
mov dl, byte [ecx + esi]
push edx
xor edx, edx
mov dl, byte [esi + 0x426941]
push edx
push eax
call fcn.00412c70
add esp, 0x1c
mov eax, dword [0x4264b4]
add eax, edi
cmp byte [eax + 0x31], bl
je 0x407bc1
mov ecx, dword [0x4264b8]
push 0x4076b0
push 0x200
mov edx, dword [ecx + esi*4]
xor ecx, ecx
push edx
mov edx, dword [0x4264a8]
mov cl, byte [edx + esi]
push ecx
xor ecx, ecx
mov cl, byte [esi + 0x426941]
push ecx
push eax
call fcn.00412ce0
add esp, 0x18
mov edx, dword [0x426940]
inc esi
and edx, ebx
add edi, 0x40
cmp esi, edx
jl 0x407b3e
push 1
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
push str.myServerProcLck
call fcn.0040f230
add esp, 0x14
test eax, eax
jne 0x407c06
call fcn.00407040
mov edx, dword [esp + 0x14]
push edx
call fcn.0040f330
add esp, 4
call fcn.004071f0
jmp 0x407b13