Function at 0x4e19d0
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x5e30dc
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebp
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x638e34]
mov edi, edx
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x4e1a94
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x14
jl 0x4e1a94
mov ecx, ebx
call fcn.004db920
test eax, eax
je 0x4e1a3e
mov ecx, ebx
call fcn.004db920
mov ebp, eax
jmp 0x4e1a43
mov ebp, str._null_
mov ecx, edi
call fcn.004db920
test eax, eax
je 0x4e1a57
mov ecx, edi
call fcn.004db920
jmp 0x4e1a5c
mov eax, str._null_
mov ecx, esi
test esi, esi
jne 0x4e1a67
mov ecx, str._null_
push ebp
push eax
push ecx
lea eax, [esp + 0x3c]
push str._ENTERING__MakeFrom_Local__Local_s__servName_s__pathName_s_
push eax
mov dword [esp + 0x44], str..._xpathmake.cpp
mov dword [esp + 0x48], 0xc0
mov dword [esp + 0x4c], 0x14
call fcn.004e4a60
add esp, 0x14
mov ebp, dword [sym.imp.MSVCR90.dll_strtok]
push 0
push 0x5fdd1c
push esi
call ebp
add esp, 8
push eax
lea ecx, [esp + 0x30]
call fcn.004dbc50
push 0x5f79d8
push 0
mov dword [esp + 0x460], 0
call ebp
add esp, 8
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.004db920
lea ecx, [esp + 0x30]
push ecx
mov edx, esi
mov ecx, eax
call fcn.004e1300
add esp, 4
push 0
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x460], 1
call fcn.004dbc20
lea ecx, [esp + 0x30]
mov byte [esp + 0x458], 3
call fcn.004db9d0
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0x350]
push eax
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x50]
call fcn.004db920
push eax
call dword [sym.imp.MSVCR90.dll__splitpath]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MSVCR90.dll__strupr]
push 0x100
lea edi, [esp + 0x64]
lea esi, [esp + 0x2c]
call fcn.004e11c0
add esp, 0x1c
test al, al
je 0x4e1c12
push 0
lea ecx, [esp + 0x150]
push ecx
lea ecx, [esp + 0x20]
call fcn.004dbc50
lea edx, [esp + 0x34c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x45c], 4
call fcn.004dbae0
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x1c]
call fcn.004dbae0
lea ecx, [esp + 0x4a]
push 0x5fdd1c
push ecx
call ebp
mov edi, dword [esp + 0x1c]
add esp, 8
push eax
mov ecx, edi
call fcn.004dbca0
push 0x5fdb20
mov ecx, ebx
call fcn.004dbca0
push edi
mov ecx, ebx
call fcn.004dbb00
push 0x5f79d8
push 0
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4e1bf0
push 0x5fdd1c
mov ecx, ebx
call fcn.004dbae0
push esi
mov ecx, ebx
call fcn.004dbae0
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
call fcn.004dbb00
lea ecx, [esp + 0x18]
mov byte [esp + 0x458], 3
call fcn.004db9d0
jmp 0x4e1cc3
push 0x104
lea eax, [esp + 0x4c]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x4e1c35
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004dbca0
jmp 0x4e1c86
mov ecx, dword [esp + 0x14]
push 0
call fcn.004dbca0
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4e1c86
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 0xa
jl 0x4e1c86
mov dword [esp + 0x18], str..._xpathmake.cpp
mov dword [esp + 0x1c], 0xe7
mov dword [esp + 0x20], 0xa
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea ecx, [esp + 0x1c]
push str.FAILED:_gethostname:__d
push ecx
call fcn.004e4a60
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.004dbca0
lea eax, [esp + 0x14c]
push eax
mov ecx, ebx
call fcn.004dbae0
lea ecx, [esp + 0x34c]
push ecx
mov ecx, ebx
call fcn.004dbae0
lea edx, [esp + 0x24c]
push edx
mov ecx, ebx
call fcn.004dbae0
mov edi, dword [esp + 0x14]
mov ecx, dword [0x638e34]
test ecx, ecx
je 0x4e1d39
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, 0x28
jl 0x4e1d39
mov ecx, ebx
call fcn.004db920
test eax, eax
je 0x4e1cef
mov ecx, ebx
call fcn.004db920
mov esi, eax
jmp 0x4e1cf4
mov esi, str._null_
mov ecx, edi
call fcn.004db920
test eax, eax
je 0x4e1d08
mov ecx, edi
call fcn.004db920
jmp 0x4e1d0d
mov eax, str._null_
push esi
push eax
lea eax, [esp + 0x20]
push str._EXITING__MakeFrom_Local__servName_s__pathName_s_
push eax
mov dword [esp + 0x28], str..._xpathmake.cpp
mov dword [esp + 0x2c], 0xf3
mov dword [esp + 0x30], 0x28
call fcn.004e4a60
add esp, 0x10
lea ecx, [esp + 0x40]
mov byte [esp + 0x458], 0
call fcn.004db9d0
lea ecx, [esp + 0x28]
mov dword [esp + 0x458], 0xffffffff
call fcn.004db9d0
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x43c]
xor ecx, esp
call fcn.005c3bb6
add esp, 0x44c
ret