Function at 0x5294f0
Capabilities:
Manipulate boot configuration
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56a6a5
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov ecx, eax
call fcn.0052d830
mov dword [esp + 0x44], vtable.CArray_class_CLogicalDrives::CDrivesInfo__class_CLogicalDrives::CDrivesInfo_.0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x120], 1
lea ecx, [esp + 0x44]
call fcn.00526df0
lea ecx, [esp + 0xac]
call fcn.005251b0
mov byte [esp + 0x120], 2
mov dword [esp + 0x8c], vtable.IDiskInterface.0
mov byte [esp + 0x120], 3
mov dword [esp + 0x8c], vtable.CDisk.0
mov dword [esp + 0x94], vtable.CArray_class_CDisk::CDiskInfo__class_CDisk::CDiskInfo_.0
mov dword [esp + 0x98], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov byte [esp + 0x120], 5
lea ecx, [esp + 0xac]
call fcn.00525310
lea ecx, [esp + 0xac]
test eax, eax
je 0x52960f
lea ecx, [esp + 0x8c]
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x40], ecx
call dword [eax + 4]
call fcn.00460400
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x529639
push 0x80004005
call fcn.00521730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x34], ebx
mov byte [esp + 0x120], 7
call fcn.00460400
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x52966b
push 0x80004005
call fcn.00521730
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
mov byte [esp + 0x120], 9
mov dword [esp + 0x58], vtable.CBootStorage.0
mov dword [esp + 0x5c], vtable.CArray_struct_COSInfo__struct_COSInfo_.0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 0
mov byte [esp + 0x120], 0xb
mov dword [esp + 0x58], vtable.CBootIni.0
mov byte [esp + 0x120], 0xc
mov dword [esp + 0x70], vtable.CBootStorage.0
mov dword [esp + 0x74], vtable.CArray_struct_COSInfo__struct_COSInfo_.0
mov dword [esp + 0x78], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov byte [esp + 0x120], 0xe
push 0
mov dword [esp + 0x74], vtable.CBcd.0
call dword [0x5c029c]
mov dword [esp + 0x88], eax
mov byte [esp + 0x120], 0xf
xor eax, eax
or edi, 0xffffffff
mov dword [esp + 0x20], eax
cmp dword [esp + 0x4c], eax
jle 0x529b40
lea esp, [esp]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x4c]
call fcn.00528110
mov byte [esp + 0x120], 0x10
lea edi, [ebx - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x5297af
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x52979e
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x52979e
mov ecx, edx
call fcn.00522930
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x529795
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x18]
lea ebx, [eax + 0x10]
mov dword [esp + 0x34], ebx
jmp 0x5297af
push dword [ecx - 0xc]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00522870
mov ebx, dword [esp + 0x34]
mov byte [esp + 0x120], 0xf
or ecx, 0xffffffff
mov edx, dword [esp + 0x40]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5297d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
je 0x529829
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x529818
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x529818
call fcn.00522930
mov dword [esp + 0x18], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x52980f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x18]
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
jmp 0x529829
push dword [ebx - 0xc]
lea ecx, [esp + 0x30]
push ebx
call fcn.00522870
mov esi, dword [esp + 0x2c]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x529bea
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x529853
push edi
lea ecx, [esp + 0x30]
call fcn.00522a10
mov esi, dword [esp + 0x2c]
lea eax, [edi + 1]
push eax
push esi
call dword [sym.imp.MSVCR120.dll__wcslwr_s]
add esp, 8
cmp edi, dword [esi - 8]
jg 0x529bea
mov dword [esi - 0xc], edi
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [sym.imp.MSVCR120.dll_wcsstr]
cmp dword [esi - 0xc], eax
jl 0x52989c
push str.boot.ini
push esi
call edi
add esp, 8
test eax, eax
je 0x52989c
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x52989c
lea eax, [esp + 0x58]
jmp 0x5298ca
cmp dword [esi - 0xc], 0
jl 0x529b2a
push str.boot_bcd
push esi
call edi
add esp, 8
test eax, eax
je 0x529b2a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x529b2a
lea eax, [esp + 0x70]
mov dword [esp + 0x18], eax
lea edi, [ebx - 0x10]
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x40]
push ecx
mov ecx, dword [edi]
mov dword [esp + 0xb4], esp
mov dword [esp + 0x1c], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x529907
cmp ecx, dword [edi]
jne 0x529907
mov eax, 1
lock xadd dword [edx], eax
jmp 0x52994c
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [esp + 0x34], edx
test edx, edx
je 0x529be5
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esp + 0x1c]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov byte [esp + 0x12c], 0x13
mov edi, dword [esp + 0x24]
mov eax, dword [edi]
mov byte [esp + 0x12c], 0xf
mov ecx, edi
call dword [eax]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0052a060
lea eax, [esp + 0x70]
cmp edi, eax
jne 0x529b2a
call fcn.00460400
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x52962f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x120], 0x15
lea eax, [esp + 0x30]
push 3
push 0
push eax
lea ecx, [esp + 0x40]
call fcn.005225c0
mov byte [esp + 0x120], 0x16
mov edx, eax
push str.boot.ini
lea ecx, [esp + 0x28]
call fcn.00528330
add esp, 4
mov byte [esp + 0x120], 0x17
lea ecx, [edi - 0x10]
mov edx, dword [eax]
mov dword [esp + 0x28], ecx
lea eax, [edx - 0x10]
mov dword [esp + 0x10], eax
cmp eax, ecx
je 0x529a4a
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
jl 0x529a39
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x529a39
mov ecx, dword [esp + 0x10]
call fcn.00522930
mov dword [esp + 0x10], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x529a30
mov edi, dword [esp + 0x28]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [esp + 0x10]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
jmp 0x529a4a
push dword [edx - 0xc]
lea ecx, [esp + 0x18]
push edx
call fcn.00522870
mov edi, dword [esp + 0x14]
mov byte [esp + 0x120], 0x16
or ecx, 0xffffffff
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x529a70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x120], 0x15
or ecx, 0xffffffff
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x529a96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0xd4]
push eax
push edi
call dword [sym.imp.MSVCR120.dll__wstat64]
add esp, 8
test eax, eax
jne 0x529b04
test dword [esp + 0xda], 0x8000
je 0x529b04
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x40]
push ecx
lea ecx, [edi - 0x10]
mov dword [esp + 0xb4], esp
mov dword [esp + 0x1c], esp
call fcn.00522930
mov ecx, esp
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x12c], 0x1b
mov byte [esp + 0x12c], 0x15
lea ecx, [esp + 0x64]
call fcn.005230b0
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
call fcn.0052a060
mov byte [esp + 0x120], 0xf
lea edx, [edi - 0x10]
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x529b2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x529b2d
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x4c]
jl 0x529740
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
cmp dword [edx + 8], 0
jle 0x529df0
xor eax, eax
mov dword [esp + 0x14], eax
lea esp, [esp]
mov edx, dword [edx + 4]
lea ecx, [esp + 0x28]
add eax, 0x20
push str._system32config_software
add edx, eax
call fcn.00528330
add esp, 4
mov byte [esp + 0x120], 0x1d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add edx, 4
mov ecx, dword [ecx + 4]
add ecx, edx
mov edx, dword [eax]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
lea edi, [edx - 0x10]
sub eax, 0x10
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x529c69
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [esp + 0x24], ecx
jl 0x529c5c
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x529c5c
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x529bf4
cmp ecx, dword [edi]
jne 0x529bf4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x529c35
call fcn.00522a00
push 0x80070057
call fcn.00521730
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [esp + 0x30], edx
test edx, edx
je 0x529be5
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
mov edi, dword [esp + 0x40]
add esp, 0x10
mov ecx, dword [esp + 0x24]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x529c51
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x529c69
push dword [edx - 0xc]
mov ecx, dword [esp + 0x24]
push edx
call fcn.00522870
mov byte [esp + 0x120], 0xf
or ecx, 0xffffffff
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x529c8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x40]
mov edi, dword [esp + 0x14]
push str._system32config_system
mov edx, dword [eax + 4]
add edx, 0x20
add edx, edi
call fcn.00528330
add esp, 4
mov byte [esp + 0x120], 0x1f
add edi, 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, edi
lea edi, [edx - 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [ecx]
sub eax, 0x10
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x529d91
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [esp + 0x24], ecx
jl 0x529d84
mov ecx, dword [edi]
cmp ecx, dword [eax]
jne 0x529d84
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x529d18
cmp ecx, dword [edi]
jne 0x529d18
mov eax, 1
lock xadd dword [edx], eax
jmp 0x529d5d
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [esp + 0x30], edx
test edx, edx
je 0x529be5
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
mov edi, dword [esp + 0x40]
add esp, 0x10
mov ecx, dword [esp + 0x24]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x529d79
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x20]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x529d91
push dword [edx - 0xc]
mov ecx, dword [esp + 0x24]
push edx
call fcn.00522870
mov byte [esp + 0x120], 0xf
or edi, 0xffffffff
mov edx, dword [esp + 0x40]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x529db9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x44]
push ecx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x18]
push eax
call fcn.0052ba90
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc ecx
mov eax, dword [esp + 0x14]
add eax, 0x48
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp ecx, dword [edx + 8]
jl 0x529b60
push dword [esp + 0x38]
mov ecx, edx
call fcn.0052a610
mov dword [esp + 0x38], eax
mov byte [esp + 0x120], 0xc
mov dword [esp + 0x70], vtable.CBcd.0
mov byte [esp + 0x120], 0x21
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x529e27
cmp ecx, 1
jne 0x529e2d
call dword [0x5c02a4]
mov byte [esp + 0x120], 0xc
mov dword [esp + 0x70], vtable.CBootStorage.0
mov byte [esp + 0x120], 0xc
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x74], vtable.CArray_struct_COSInfo__struct_COSInfo_.0
test ecx, ecx
je 0x529e6b
mov edx, dword [esp + 0x7c]
call fcn.00522dd0
push dword [esp + 0x78]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x120], 9
mov dword [esp + 0x58], vtable.CBootIni.0
mov byte [esp + 0x120], 9
mov dword [esp + 0x58], vtable.CBootStorage.0
mov byte [esp + 0x120], 9
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x5c], vtable.CArray_struct_COSInfo__struct_COSInfo_.0
test ecx, ecx
je 0x529eb9
mov edx, dword [esp + 0x64]
call fcn.00522dd0
push dword [esp + 0x60]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [esp + 0x120], 7
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x529eda
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x120], 5
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x529ef9
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x120], 2
mov dword [esp + 0x8c], vtable.CDisk.0
mov byte [esp + 0x120], 0x27
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x94], vtable.CArray_class_CDisk::CDiskInfo__class_CDisk::CDiskInfo_.0
test ecx, ecx
je 0x529f4a
mov edx, dword [esp + 0x9c]
call fcn.00524de0
push dword [esp + 0x98]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
call ebx
add esp, 4
jmp 0x529f50
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov byte [esp + 0x120], 2
mov dword [esp + 0x8c], vtable.IDiskInterface.0
mov byte [esp + 0x120], 1
mov dword [esp + 0xac], vtable.CVds.0
mov byte [esp + 0x120], 0x2a
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x529f8f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x529f9f
cmp eax, 1
jne 0x529fa5
call dword [0x5c02a4]
mov byte [esp + 0x120], 0x29
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xbc], vtable.CArray_class_CVds::CDiskInfo__class_CVds::CDiskInfo_.0
test ecx, ecx
je 0x529fdb
mov edx, dword [esp + 0xc4]
call fcn.00526a60
push dword [esp + 0xc0]
call ebx
add esp, 4
mov byte [esp + 0x120], 1
mov dword [esp + 0xac], vtable.IDiskInterface.0
mov dword [esp + 0x120], 0xffffffff
mov esi, dword [esp + 0x48]
mov dword [esp + 0x44], vtable.CArray_class_CLogicalDrives::CDrivesInfo__class_CLogicalDrives::CDrivesInfo_.0
test esi, esi
je 0x52a028
mov edi, dword [esp + 0x4c]
test edi, edi
je 0x52a022
mov ecx, esi
call fcn.005270a0
add esi, 0x28
dec edi
jne 0x52a011
mov esi, dword [esp + 0x48]
push esi
call ebx
add esp, 4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4