Function at 0x4371c0
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe30
push ebx
push esi
push edi
call fcn.00438120
test eax, eax
je 0x4371e4
xor eax, eax
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5a1be8]
xor ebx, ebx
cmp eax, ebx
jne 0x437205
call fcn.004374f0
test eax, eax
jne 0x437205
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x104
xor eax, eax
mov ecx, esi
lea edi, [ebp - 0x630]
rep stosd dword es:[edi], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 0x11c]
push eax
push ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [ebp - 8]
lea eax, [ebp - 0x220]
push edx
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov edi, dword [ebp + 8]
cmp edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x437255
xor edi, edi
jmp 0x437274
push edi
call ebx
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00461830
mov eax, esp
push esi
push edi
push eax
call fcn.005124b5
mov edi, eax
mov ax, word [edi]
test ax, ax
je 0x43728b
cmp ax, 0x5c
jne 0x43728b
add edi, 2
cmp word [edi], 0x5c
je 0x437282
lea ecx, [ebp - 0x220]
xor esi, esi
push ecx
call ebx
xor ecx, ecx
test eax, eax
jle 0x4372ab
movsx edx, byte [ebp + ecx - 0x220]
add esi, edx
inc ecx
cmp ecx, eax
jl 0x43729c
lea eax, [ebp - 0x11c]
push eax
call ebx
xor ecx, ecx
test eax, eax
jle 0x4372c9
movsx edx, byte [ebp + ecx - 0x11c]
add esi, edx
inc ecx
cmp ecx, eax
jl 0x4372ba
push edi
push esi
lea eax, [ebp - 0xe30]
push 0x59279c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xe30]
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00437400
lea eax, [ebp - 4]
push eax
push 0x20
push 0
call fcn.00437470
add esp, 0x24
test eax, eax
je 0x437310
xor eax, eax
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x18]
push ecx
push edx
push eax
call dword [fcn.005a1bfc]
test eax, eax
jne 0x4373dd
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x410
jne 0x4373d6
mov esi, dword [eax + 4]
mov ecx, 0x104
lea edi, [ebp - 0x630]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x630]
test ecx, ecx
jne 0x43735c
xor eax, eax
jmp 0x437385
lea edx, [ebp - 0x630]
push edx
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00461830
mov eax, esp
lea ecx, [ebp - 0x630]
push esi
push ecx
push eax
call fcn.005124de
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push edx
call ebx
lea eax, [ebp - 0x428]
test eax, eax
je 0x4373c5
lea ecx, [ebp - 0x428]
push ecx
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00461830
mov eax, esp
lea edx, [ebp - 0x428]
push esi
push edx
push eax
call fcn.005124de
push eax
mov eax, dword [ebp + 0x10]
push eax
call ebx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
push eax
call dword [fcn.005a1bf0]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4373eb
push eax
call dword [fcn.005a1bf4]
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xe3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret