Function at 0x477050
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53e81d
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x138], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x120], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x2c], ebx
cmp esi, ebx
je 0x477347
mov dword [ebp - 0x124], ebx
mov eax, dword [edi + 0x24]
mov ecx, dword [eax + 0x60]
add ecx, 0x66a4
push ecx
push str.X_SpectorSerial
mov ecx, esi
call fcn.004a61b0
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 0x60]
add eax, 0x67b9
lea edx, [ebp - 0x114]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4770d6
lea eax, [ebp - 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4770e7
mov ecx, dword [str._on]
mov dword [eax], ecx
mov dl, byte [0x565414]
mov byte [eax + 4], dl
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x477110
sub eax, edx
mov ecx, 0x100
sub ecx, eax
mov dword [ebp - 0x124], ecx
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp + eax - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 0x114]
push ecx
push str.X_SpectorMachineID
mov ecx, esi
call fcn.004a61b0
mov edx, dword [edi + 0x24]
mov eax, dword [edx + 0x60]
add eax, 0x66b5
push eax
push str.X_SpectorComputerID
mov ecx, esi
call fcn.004a61b0
mov ecx, dword [edi + 0x24]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x16a0]
push eax
push 0x54f274
lea ecx, [ebp - 0x114]
push ecx
call fcn.004ff1e4
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push str.X_SpectorBuild
mov ecx, esi
call fcn.004a61b0
mov ecx, esi
call fcn.004ab850
mov dword [ebp - 0x128], eax
cmp eax, ebx
je 0x477347
mov eax, dword [0x5bbfe4]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
lea eax, [edi + 0x14]
mov ecx, dword [eax]
push str.XMLProcessorEb::AddMailMsg:_Added.
push 3
push eax
mov edx, dword [ecx + 8]
call edx
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
mov ecx, esi
call fcn.004a62b0
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push ebx
push 0x22
push 0xfde9
push ebx
push eax
call fcn.0048d1e0
add esp, 0x18
mov edi, eax
mov dword [ebp - 0x130], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x11c]
call fcn.004bfa40
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, esi
call fcn.004a6370
mov byte [ebp - 4], 5
mov eax, dword [eax]
push ebx
push ebx
push 0x22
push 0xfde9
push ebx
push eax
call fcn.0048d1e0
add esp, 0x18
mov ebx, eax
mov dword [ebp - 0x12c], ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x11c]
call fcn.004bfa40
lea edx, [ebp - 0x11c]
push edx
mov ecx, esi
call fcn.004a6430
mov byte [ebp - 4], 8
mov eax, dword [eax]
push 0
push 0
push 0x22
push 0xfde9
push 0
push eax
call fcn.0048d1e0
add esp, 0x18
mov esi, eax
mov dword [ebp - 0x134], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x11c]
call fcn.004bfa40
push esi
push ebx
push edi
push str._email_to__s__cc__s__bcc__s__
lea eax, [ebp - 0x118]
push eax
call fcn.004c0960
add esp, 0x14
mov esi, dword [ebp - 0x128]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4772b2
sub eax, ecx
push 0
push 0
push eax
push esi
push 0x56dee4
lea ecx, [ebp - 0x118]
push ecx
mov edi, dword [ebp - 0x138]
mov ecx, edi
call fcn.00415360
push str.__email_
lea ecx, [ebp - 0x118]
call fcn.004bfd50
mov edx, dword [ebp - 0x118]
push edx
mov ecx, edi
call fcn.00413710
push esi
call fcn.004fedfc
add esp, 4
mov dword [ebp - 0x120], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x134]
call fcn.00415310
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x12c]
call fcn.00415310
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.00415310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x118]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4