Function at 0x41f5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e579
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x4655d4]
push ebx
push ebp
push esi
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x244]
push edi
mov esi, ecx
push eax
mov dword [esp + 0x1c], esi
call fcn.00404120
mov ebx, dword [esp + 0x24c]
push ebx
lea ecx, [esi + 4]
mov dword [esp + 0x244], 0
call fcn.00404120
mov byte [esp + 0x240], 1
call fcn.00441da2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov byte [esp + 0x240], 2
lea edi, [esi + 0xc]
call fcn.00441da2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x240], 3
lea ebp, [esi + 0x10]
call fcn.00441da2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x254]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x244], 4
mov dword [esi + 0x14], eax
call fcn.00404120
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
mov byte [esp + 0x254], 5
call fcn.0042f089
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0x453cc0
push edi
call fcn.0040a4a0
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x4c]
push eax
push 0x453cc0
push ebp
call fcn.0040a4a0
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx - 0xc]
add esp, 0x34
test eax, eax
jge 0x41f714
or eax, 0xffffffff
jmp 0x41f731
push str._HPSU:reboot
push ecx
call fcn.0042d2c6
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x41f72f
or eax, 0xffffffff
jmp 0x41f731
sub eax, ecx
cmp eax, 0xffffffff
setne dl
mov byte [esi + 0x19], dl
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41f746
or eax, 0xffffffff
jmp 0x41f763
push str._HPSU:selfreboot
push ecx
call fcn.0042d2c6
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x41f761
or eax, 0xffffffff
jmp 0x41f763
sub eax, ecx
cmp eax, 0xffffffff
setne al
mov byte [esi + 0x1a], al
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x41f778
or eax, 0xffffffff
jmp 0x41f795
push str._HPSU:exec
push ecx
call fcn.0042d2c6
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x41f793
or eax, 0xffffffff
jmp 0x41f795
sub eax, ecx
cmp eax, 0xffffffff
setne dl
mov byte [esi + 0x18], dl
mov dword [esi + 0x1c], 0
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x41f93d
push str._HPSUTimeout:
push ecx
call fcn.0042d2c6
add esp, 8
test eax, eax
je 0x41f83d
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x41f841
add edi, 0xd
mov eax, dword [ecx - 0xc]
js 0x41f7fa
cmp edi, eax
jg 0x41f7fa
add ecx, edi
push 0x45519c
push ecx
call fcn.0042d2c6
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x41f7fa
sub eax, ecx
cmp eax, 0xffffffff
jne 0x41f800
mov ecx, dword [ecx - 0xc]
lea eax, [ecx - 1]
sub eax, edi
inc eax
push eax
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404fa0
mov edi, dword [esp + 0x14]
push edi
call fcn.0042dece
mov dword [esi + 0x1c], eax
lea eax, [edi - 0x10]
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f83d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x41f93d
push str._HPSUParam:_
push ecx
call fcn.0042d2c6
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x41f93d
sub eax, ecx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41f93d
add ebp, 0xc
lea eax, [ebp + 1]
test eax, eax
jl 0x41f8d3
mov ebx, dword [ecx - 0xc]
lea edi, [eax + 1]
cmp eax, ebx
jg 0x41f8d3
mov dl, byte [eax + ecx]
cmp dl, 0x22
jne 0x41f89c
test edi, edi
jl 0x41f8d3
cmp edi, ebx
jg 0x41f8d3
cmp byte [edi + ecx], dl
je 0x41f8aa
cmp edi, 1
jl 0x41f8d3
cmp eax, ebx
jg 0x41f8d3
cmp dl, 0x22
je 0x41f8dd
cmp eax, ebx
jge 0x41f8dd
cmp edi, 1
jl 0x41f8d3
cmp eax, ebx
jg 0x41f8d3
cmp dl, 0x22
jne 0x41f8cc
test edi, edi
jl 0x41f8d3
cmp edi, ebx
jg 0x41f8d3
cmp byte [edi + ecx], 0x22
jne 0x41f8cc
inc eax
inc edi
inc eax
inc edi
cmp edi, 1
jge 0x41f883
push 0x80070057
call fcn.00401490
sub eax, ebp
push eax
push ebp
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404fa0
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [esp + 0x244], 6
call fcn.0041e5d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x240], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f928
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x45305c
push 0x455274
mov ecx, edi
call fcn.00404da0
mov ecx, dword [esp + 0x10]
lea eax, [ecx - 0x10]
mov byte [esp + 0x240], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f95f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x238]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x228]
pop ebx
call fcn.0042d2b8
add esp, 0x234
ret 0x10