Function at 0x4054c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ee528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
lea ecx, [esp + 0xc]
call fcn.00475d70
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.005dd5f1
push 0x20019
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00475e90
test eax, eax
je 0x405535
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push str.PendingFileRenameOperations
push 0
push ecx
call fcn.00405340
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00475ee0
push ebx
push ebp
push esi
push edi
call fcn.00401000
mov ebx, eax
call fcn.00401030
mov dword [esp + 0x14], eax
call fcn.004013a0
mov dword [esp + 0x18], eax
mov ebp, 0x6453c8
mov edx, dword [0x664c18]
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 4]
mov byte [esp + 0x40], 2
cmp eax, 1
jne 0x40557f
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push eax
push ebx
push 0x643284
push ecx
jmp 0x4055c7
cmp eax, 2
jne 0x405599
mov edx, dword [ebp]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x643284
push ecx
jmp 0x4055c7
cmp eax, 3
jne 0x4055b3
mov edx, dword [ebp]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x643284
push ecx
jmp 0x4055c7
cmp eax, 4
jne 0x4055cf
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push edx
push ebx
push str._sdrivers_s
push eax
call fcn.005dca8f
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x40565f
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x40565f
mov edi, 1
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + esi*4]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov edx, dword [edx - 8]
cmp eax, edx
jl 0x405655
push dword [esp + 0x10]
sub eax, edx
add eax, ecx
push eax
call fcn.00453af0
add esp, 8
test eax, eax
jne 0x405655
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
cmp byte [ecx], 0x21
je 0x405655
mov ecx, dword [esp + 0x2c]
cmp ecx, 2
jle 0x405655
cmp ecx, edi
jle 0x405655
mov edx, dword [eax + esi*4 + 4]
mov eax, dword [edx - 8]
test eax, eax
jne 0x405655
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.005dda08
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.005dda08
dec esi
dec edi
mov eax, dword [esp + 0x2c]
inc esi
inc edi
cmp esi, eax
jl 0x4055ed
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call fcn.005df1c7
add ebp, 8
cmp ebp, 0x645c60
jb 0x405557
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jle 0x4056db
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax*4 - 4]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x4056aa
push 0x684008
push eax
lea ecx, [esp + 0x1c]
call fcn.005dd89a
mov eax, dword [esp + 0x1c]
mov ecx, eax
and ecx, 0x80000001
jns 0x4056b9
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4056ce
push 0x684008
push eax
lea ecx, [esp + 0x1c]
call fcn.005dd89a
mov eax, dword [esp + 0x1c]
dec eax
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.005dda08
push 0x20006
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.00475e90
test eax, eax
je 0x40572b
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x40570f
push str.PendingFileRenameOperations
lea ecx, [esp + 0x10]
call fcn.004781d0
jmp 0x405722
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
push str.PendingFileRenameOperations
call fcn.00477610
lea ecx, [esp + 0xc]
call fcn.00475ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.005dd624
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00475e10
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret