Function at 0x414380
Capabilities:
Get hostname
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x577d58
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x60bd28]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], edi
jne 0x414714
push 0x7c
mov dword [edi], 1
call fcn.00506f37
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov dword [esp + 0x298], ebp
je 0x4143f7
push 1
mov ecx, eax
call fcn.00412ba0
jmp 0x4143f9
xor eax, eax
mov dword [edi + 0x3c], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18e]
push ecx
mov dword [esp + 0x2a0], 0xffffffff
mov dword [esp + 0x34], 0x102
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov al, 0x5c
lea ebx, [edi + 0x5c]
mov ecx, ebx
mov byte [esp + 0x188], al
mov byte [esp + 0x189], al
mov dword [esp + 0x18], ebx
call fcn.0051de3e
push 0xa
lea ecx, [esp + 0x3c]
call fcn.0051e721
push 0xe
push ebp
push ebp
push ebp
mov dword [esp + 0x2a8], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
xor eax, eax
lea edx, [esp + 0x54]
push edx
push eax
push esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4145f8
push 0x103
lea eax, [esp + 0x89]
push 0
push eax
add ebp, 1
mov byte [esp + 0x90], 0
call fcn.0053fd60
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x64]
push edx
push esi
call fcn.004133b0
add esp, 0x18
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x74]
call fcn.0042b730
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x74]
mov byte [esp + 0x29c], 2
call fcn.0042bf40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
mov byte [esp + 0x29c], 3
call fcn.00401b70
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x298], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41453a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
call fcn.00506f37
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x298], 6
je 0x414567
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.00402a30
mov ebx, eax
jmp 0x414569
xor ebx, ebx
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
push edx
mov byte [esp + 0x29c], 5
call fcn.0051e070
mov dword [eax], ebx
lea eax, [edi - 0x10]
mov byte [esp + 0x298], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x298], 1
call fcn.0042b6f0
xor eax, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
movsx eax, bp
lea ecx, [esp + 0x54]
push ecx
push eax
push esi
mov dword [esp + 0x60], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x41449a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
lea esi, [edi + 0x40]
push esi
lea edx, [esp + 0x18c]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Connect_MachineA]
xor ebp, ebp
cmp eax, ebp
je 0x414642
push eax
lea eax, [esp + 0x88]
push str.Machine_Connection_failed__cr__lx_hex__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x38]
mov dword [esp + 0x298], 0xffffffff
call fcn.0051e89c
xor eax, eax
jmp 0x414714
lea eax, [edi + 0x44]
push eax
mov dword [eax], 0xc
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassImageList]
mov ecx, dword [edi + 0x48]
push ecx
lea ecx, [edi + 0x50]
call fcn.00508dc4
mov edx, dword [esi]
push edx
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNode_ExA]
mov ecx, dword [esi]
mov edx, dword [esp + 0x20]
push ecx
push ebp
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Child_Ex]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push ebp
push edx
mov ecx, edi
call fcn.00413e60
mov eax, dword [edi + 0x68]
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x24], eax
je 0x4146f4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov dword [esp + 0x28], ebp
call fcn.0051df64
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4146ee
mov esi, eax
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call fcn.00506f62
add esp, 4
cmp dword [esp + 0x24], ebp
jne 0x4146a3
mov ecx, ebx
call fcn.0051de3e
lea ecx, [esp + 0x38]
mov dword [esp + 0x298], 0xffffffff
call fcn.0051e89c
mov eax, 1
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0053fab2
add esp, 0x288
ret