Function at 0x42d420
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445e50
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x56211c]
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 ebx, ecx
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42d498
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x42d47e
lea eax, [ebp - 0x30]
push 0x10
push eax
call dword [sym.imp.MSVCR120.dll__mbslwr_s]
add esp, 8
jmp 0x42d482
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push 0x10
push eax
call dword [sym.imp.MSVCR120.dll_strcpy_s]
add esp, 0xc
lea edi, [ebp - 0x20]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
mov ecx, edi
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42d4c0
sub ecx, edx
lea eax, [ecx + edi]
push eax
lea eax, [ebp - 0x38]
push edi
push eax
push eax
mov ecx, eax
call fcn.004115f0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0042e0c0
mov esi, eax
cmp esi, dword [ebx]
je 0x42d518
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x42d500
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x38]
push 0
call fcn.0042e470
test eax, eax
js 0x42d518
mov dword [ebp - 0x58], esi
jmp 0x42d51d
mov eax, dword [ebx]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x24], 0x10
lea esi, [ebp - 0x58]
mov esi, dword [esi]
mov dword [ebp - 4], 0xffffffff
jb 0x42d53a
push dword [ebp - 0x38]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
cmp esi, dword [ebx]
je 0x42d589
add esi, 0x28
mov ecx, esi
call fcn.0042ccb0
mov ecx, esi
inc dword [eax + 4]
call fcn.0042ccb0
cmp word [eax + 8], 0xffff
jne 0x42d66d
mov ecx, esi
call fcn.0042ccb0
add eax, 8
mov ecx, ebx
push eax
push 1
push edi
call fcn.0042d690
jmp 0x42d66d
lea eax, [ebp - 0x60]
mov ecx, ebx
push eax
push 1
push edi
call fcn.0042d690
test eax, eax
js 0x42d66d
lea eax, [ebp - 0x24]
push eax
call fcn.0042e550
add esp, 4
mov edi, dword [eax]
xor esi, esi
mov dword [ebp - 4], 2
mov dword [ebp - 0x58], esi
test edi, edi
je 0x42d5c8
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov esi, edi
mov dword [ebp - 0x58], esi
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x58]
call fcn.0042ccb0
mov cx, word [ebp - 0x60]
mov word [eax + 8], cx
lea ecx, [ebp - 0x58]
call fcn.0042ccb0
lea ecx, [ebp - 0x54]
mov dword [eax + 4], 1
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0042b3a0
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0042b630
push eax
add eax, 0x10
mov ecx, ebx
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.0042b9b0
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x42d638
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x40], 0x10
jb 0x42d649
push dword [ebp - 0x54]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x42d66d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
xor eax, eax
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.0043babe
mov esp, ebp
pop ebp
ret 4