Function at 0x408d60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x46af24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push 0xfe
mov esi, ecx
lea edx, [ebp - 0x102]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x618], esi
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x620], ebx
mov word [ebp - 0x104], cx
call sub.MSVCR100.dll_memset
push 0xfe
lea ecx, [ebp - 0x202]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x204], ax
call sub.MSVCR100.dll_memset
add esp, 0x18
cmp dword [esi + 0x64], ebx
jne 0x408de0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004534b8
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.mfc100u.dll_new__]
push 0x1000
mov dword [esi + 0x6c], ebx
call edi
add esp, 4
mov dword [ebp - 0x62c], eax
cmp eax, ebx
jne 0x408e0a
mov dword [esi + 0x6c], 0xffffffff
jmp 0x40947c
push 0x1000
push ebx
push eax
call sub.MSVCR100.dll_memset
push 0x1000
call edi
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x624], ebx
test ebx, ebx
jne 0x408e38
mov dword [esi + 0x6c], 0xffffffff
jmp 0x409450
push 0x1000
push 0
push ebx
call sub.MSVCR100.dll_memset
push 0x1000
call edi
add esp, 0x10
mov dword [ebp - 0x620], eax
test eax, eax
jne 0x408e65
mov dword [esi + 0x6c], 0xffffffff
jmp 0x409450
push 0x1000
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x46b1bc
push esi
call fcn.00401ba0
mov dword [ebp - 0x628], eax
inc eax
cmp dword [esi + 0x74], eax
jae 0x408e8f
mov dword [esi + 0x74], eax
push 0x45f664
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
mov ecx, dword [esi + 0xc]
push 2
call fcn.0044100b
push eax
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
push 0xf
call fcn.00401ad0
test eax, eax
jne 0x409450
push 0x45f664
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
mov edi, dword [ebp - 0x61c]
mov edx, dword [edi + 0xd8c]
mov eax, dword [edx + 0x64]
push eax
push 0x25
call fcn.00402920
add esp, 8
lea ecx, [esi + 0xc0]
push ecx
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
push 0x45f664
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
mov eax, dword [edi + 0x9bc]
add eax, 0xc84
push eax
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
mov eax, dword [edi + 0x9bc]
add eax, 0x1094
push eax
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
push 0x45f664
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
mov eax, dword [edi + 0x9bc]
add eax, 0x90
push eax
mov eax, 0x10
call fcn.00401aa0
test eax, eax
jne 0x409450
mov eax, dword [edi + 0x9bc]
add eax, 0x97c
push eax
mov eax, 0x11
call fcn.00401aa0
test eax, eax
jne 0x409450
mov edx, dword [ebp - 0x620]
mov eax, dword [ebp - 0x62c]
push 0x800
push edx
push 0x800
push ebx
push 0x800
push eax
call fcn.004401c8
add esp, 0x18
push ebx
mov eax, 0x12
call fcn.00401aa0
test eax, eax
jne 0x409450
mov eax, dword [ebp - 0x620]
cmp word [eax], 0x28
jne 0x409009
cmp word [eax + 2], 0x29
jne 0x409009
add eax, 4
cmp word [eax], 0x20
jne 0x409009
nop
add eax, 2
cmp word [eax], 0x20
je 0x409000
push eax
mov eax, 0x13
call fcn.00401aa0
test eax, eax
jne 0x409450
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 0
je 0x409073
dec eax
je 0x409051
dec eax
jne 0x409093
mov ecx, dword [esi + 0xc]
push 0x1c2
call fcn.004410cb
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409040
jmp 0x409093
mov ecx, dword [esi + 0xc]
push 0x1c1
call fcn.004410cb
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409062
jmp 0x409093
mov ecx, dword [esi + 0xc]
push 0x1c0
call fcn.004410cb
mov edx, ebx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x409084
push ebx
mov eax, 0x1bf
call fcn.00401aa0
test eax, eax
jne 0x409450
mov eax, dword [edi + 0xa4c]
push eax
mov eax, 0x14
call fcn.00401aa0
test eax, eax
jne 0x409450
lea ecx, [ebp - 0x628]
push ecx
push ebx
mov dword [ebp - 0x628], 0x800
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4090ee
push ebx
mov eax, 0x15
call fcn.00401aa0
test eax, eax
jne 0x409450
push 0x45f664
mov ecx, esi
call fcn.004024a0
test eax, eax
jne 0x409450
mov eax, 0x18
call fcn.004025e0
test eax, eax
jne 0x409450
mov ecx, dword [edi + 0x9fc]
mov ebx, dword [edi + 0xaa0]
mov edi, esi
call fcn.00401060
test eax, eax
jne 0x409444
mov ebx, dword [ebp - 0x61c]
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa68]
push eax
mov ecx, esi
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa6c]
push eax
mov ecx, esi
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa70]
push eax
mov ecx, esi
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xabc]
push eax
mov ecx, esi
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa80]
push eax
mov ecx, esi
call fcn.00401430
test eax, eax
jne 0x409444
mov ecx, dword [ebx + 0xd8c]
mov esi, 1
cmp dword [ecx + 0x7f4], esi
jl 0x409250
jmp 0x4091e0
lea edx, [ebp - 0x204]
push edx
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0x40c]
push edx
mov eax, esi
call fcn.00419c60
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.MSVCR100.dll__wcsupr]
mov ebx, dword [ebx + 0xa24]
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x618]
push ebx
lea ebx, [ebp - 0x204]
lea edi, [ebp - 0x40c]
call fcn.004015c0
test eax, eax
jne 0x409444
mov edx, dword [ebp - 0x61c]
mov ecx, dword [edx + 0xd8c]
inc esi
mov ebx, edx
cmp esi, dword [ecx + 0x7f4]
jle 0x4091e0
mov esi, dword [ebx + 0xd8c]
call fcn.00419d10
mov esi, dword [ebp - 0x618]
mov ecx, dword [esi + 0xc]
push eax
push 0x1a3
call fcn.004410cb
push eax
mov ecx, esi
call fcn.00401740
test eax, eax
jne 0x409444
mov ecx, dword [ebx + 0xd8c]
mov esi, 1
cmp dword [ecx + 0x7f8], esi
jl 0x4092fd
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0x40c]
push edx
lea edi, [ebp - 0x614]
mov eax, esi
call fcn.00419d50
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.MSVCR100.dll__wcsupr]
mov ebx, dword [ebx + 0xa24]
add esp, 4
lea ecx, [ebp - 0x104]
push ecx
mov ecx, dword [ebp - 0x618]
push ebx
xor ebx, ebx
lea edi, [ebp - 0x40c]
call fcn.004015c0
test eax, eax
jne 0x409444
mov edx, dword [ebp - 0x61c]
mov ecx, dword [edx + 0xd8c]
inc esi
mov ebx, edx
cmp esi, dword [ecx + 0x7f8]
jle 0x409292
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa7c]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xaac]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa78]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xab0]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
cmp dword [ebx + 0xb2c], eax
je 0x4093a5
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xaa4]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov ecx, dword [ebp - 0x618]
push eax
mov edi, str.SQLITE3.DLL
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa88]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa84]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov eax, dword [ebx + 0x9fc]
mov edi, dword [ebx + 0xa98]
mov ecx, dword [ebp - 0x618]
push eax
call fcn.00401430
test eax, eax
jne 0x409444
mov edi, dword [ebx + 0xa9c]
mov ebx, dword [ebx + 0x9fc]
mov ecx, dword [ebp - 0x618]
push ebx
call fcn.00401430
test eax, eax
jne 0x409444
mov ecx, dword [ebp - 0x618]
push 0x45f664
call fcn.004024a0
mov ebx, dword [ebp - 0x624]
mov esi, dword [ebp - 0x618]
mov eax, dword [ebp - 0x62c]
mov edi, dword [sym.imp.mfc100u.dll_delete__]
push eax
call edi
add esp, 4
test ebx, ebx
je 0x40946c
push ebx
call edi
add esp, 4
mov eax, dword [ebp - 0x620]
test eax, eax
je 0x40947c
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x6c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004534b8
mov esp, ebp
pop ebp
ret 4