Function at 0x404c20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e00d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
lea ecx, [esp + 0xc]
call fcn.00469d70
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.005cf1d1
push 0x20019
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00469e90
test eax, eax
je 0x404c95
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push str.PendingFileRenameOperations
push 0
push ecx
call fcn.00404f90
add esp, 0x10
lea ecx, [esp + 0xc]
call fcn.00469ee0
push ebx
push ebp
push esi
push edi
call fcn.00401da0
mov ebx, eax
call fcn.00401e20
mov dword [esp + 0x14], eax
call fcn.004021b0
push 0x66f8a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
call fcn.005d0e15
mov byte [esp + 0x40], 2
mov ebp, 0x634130
push 0x66f8a0
lea ecx, [esp + 0x14]
call fcn.005d0f30
mov eax, dword [ebp + 4]
cmp eax, 1
jne 0x404cf1
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push edx
push ebx
push 0x633274
push eax
jmp 0x404d39
cmp eax, 2
jne 0x404d0b
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x633274
push eax
jmp 0x404d39
cmp eax, 3
jne 0x404d25
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x18]
push 0x633274
push eax
jmp 0x404d39
cmp eax, 4
jne 0x404d41
mov ecx, dword [ebp]
lea edx, [esp + 0x10]
push ecx
push ebx
push str._sdrivers_s
push edx
call fcn.005ce66f
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404dd1
mov eax, dword [esp + 0x2c]
xor esi, esi
test eax, eax
jle 0x404dd1
mov edi, 1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + esi*4]
mov edx, dword [edx - 8]
mov eax, dword [ecx - 8]
cmp eax, edx
jl 0x404dc7
push dword [esp + 0x10]
sub eax, edx
add eax, ecx
push eax
call fcn.00449110
add esp, 8
test eax, eax
jne 0x404dc7
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + esi*4]
cmp byte [ecx], 0x21
je 0x404dc7
mov ecx, dword [esp + 0x2c]
cmp ecx, 2
jle 0x404dc7
cmp ecx, edi
jle 0x404dc7
mov edx, dword [eax + esi*4 + 4]
mov eax, dword [edx - 8]
test eax, eax
jne 0x404dc7
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.005cf5e8
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.005cf5e8
dec esi
dec edi
mov eax, dword [esp + 0x2c]
inc esi
inc edi
cmp esi, eax
jl 0x404d5f
add ebp, 8
cmp ebp, 0x635100
jb 0x404cca
mov ebp, 0x6358b0
mov eax, dword [ebp]
test eax, eax
je 0x404e8a
push eax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push 0x633274
push ecx
call fcn.005ce66f
mov eax, dword [esp + 0x3c]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x404e8a
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 0x404e80
mov ebx, dword [esp + 0x10]
sub eax, edx
add eax, ecx
push ebx
push eax
call fcn.00449110
add esp, 8
test eax, eax
jne 0x404e80
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + esi*4]
cmp byte [eax], 0x21
je 0x404e80
mov eax, dword [esp + 0x2c]
cmp eax, 2
jle 0x404e80
cmp eax, edi
jle 0x404e80
mov ecx, dword [ecx + esi*4 + 4]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x404e80
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.005cf5e8
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.005cf5e8
dec esi
dec edi
mov eax, dword [esp + 0x2c]
inc esi
inc edi
cmp esi, eax
jl 0x404e17
add ebp, 8
cmp ebp, str.bakSCClient.dat
jb 0x404de5
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jle 0x404ef8
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx - 8]
test edx, edx
je 0x404ec3
push 0x66f8a0
push eax
lea ecx, [esp + 0x1c]
call fcn.005cf47a
mov eax, dword [esp + 0x1c]
mov edx, eax
and edx, 0x80000001
jns 0x404ed6
dec edx
or edx, 0xfffffffe
inc edx
jne 0x404ee7
push 0x66f8a0
push eax
lea ecx, [esp + 0x1c]
call fcn.005cf47a
mov eax, dword [esp + 0x1c]
push 1
dec eax
lea ecx, [esp + 0x18]
push eax
call fcn.005cf5e8
push 0x20006
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.00469e90
test eax, eax
je 0x404f48
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x404f2c
push str.PendingFileRenameOperations
lea ecx, [esp + 0x10]
call fcn.0046c1d0
jmp 0x404f3f
lea ecx, [esp + 0x14]
push ecx
push str.PendingFileRenameOperations
lea ecx, [esp + 0x14]
call fcn.0046b610
lea ecx, [esp + 0xc]
call fcn.00469ee0
lea ecx, [esp]
mov byte [esp + 0x30], 1
call fcn.005d0da7
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.005cf204
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00469e10
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret