Function at 0x413860
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4188d5
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
mov eax, dword [0x421080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xaf8], edi
mov dword [edi + 0x38], vtable.NS_QuickSearch::CSearchArray_StringToVoid_class_CRdbOpcClientManager::CTagItem__.0
mov dword [edi + 0x48], 0x1e
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x58], 0x1e
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 8]
push eax
mov byte [ebp - 4], 1
call esi
lea eax, [edi + 0x20]
push eax
call esi
lea eax, [edi + 4]
mov dword [edi], 0
mov dword [eax], 0
push eax
push 0x41b40c
push 0x17
push 0
push 0x41b3fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x413a4c
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0xaec]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
mov ax, word [ebp - 0x36]
lea ecx, [ebp - 0xae2]
mov word [ebp - 0xae4], ax
mov esi, 0x41b41c
mov eax, ecx
mov edx, 0x32
sub esi, eax
jmp 0x413960
movzx eax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
je 0x413973
dec edx
jne 0x413960
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x690]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.MSVCR120.dll_wcscpy_s]
lea eax, [ebp - 0x490]
push str.ServerThread.cpp
push 0x100
push eax
call esi
push str.Thu_Aug_15_11:37:23_2013
lea eax, [ebp - 0x96]
mov dword [ebp - 0x290], 0x189
push 0x29
push eax
call esi
push str.CRdbOpcClientManager::CRdbOpcClientManager
lea eax, [ebp - 0x28c]
push 0xfb
push eax
call esi
lea ecx, [ebp - 0xa7c]
mov esi, str.OPC_Server
mov eax, ecx
add esp, 0x24
mov edx, 0xfa
sub esi, eax
movzx eax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
je 0x413a03
dec edx
jne 0x4139f0
xor eax, eax
mov esi, 0x41b530
mov word [ecx], ax
mov edx, 0xfa
lea ecx, [ebp - 0x886]
mov eax, ecx
sub esi, eax
lea esp, [esp]
movzx eax, word [esi + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
je 0x413a33
dec edx
jne 0x413a20
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0xaec]
push eax
call fcn.00405f50
add esp, 4
jmp 0x413b7a
push 0x30
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0xaf4], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x413a71
push 0
mov ecx, eax
call fcn.00401460
mov ecx, eax
jmp 0x413a73
xor ecx, ecx
mov byte [ebp - 4], 1
test ecx, ecx
je 0x413a80
lea ebx, [ecx + 4]
jmp 0x413a82
xor ebx, ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
call fcn.00403900
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x413aa4
push 0x80004005
call fcn.00403060
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xaf0], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x12c
or eax, ecx
mov byte [ebp - 4], 3
jge 0x413ae2
push 0x12c
lea ecx, [ebp - 0xaf0]
call fcn.004044f0
mov esi, dword [ebp - 0xaf0]
push 0x12c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [esi - 8]
push esi
call dword [sym.imp.MSVCR120.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x413b98
cmp eax, dword [esi - 8]
jg 0x413b98
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0xaf4]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0xaf4], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [edi + 4]
lea edx, [ebp - 0x34]
push esi
push edx
push dword [0x4229e4]
mov ecx, dword [eax]
push dword [0x4229e0]
push 0
push ebx
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413b7a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416efc
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403060
int3