Function at 0x40ab50
Capabilities:
Check os version
Inspect section memory permissions
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4358a9
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449fb0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ebx
call fcn.00414de3
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40abb7
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [ebp + 0xd4]
lea esi, [ebp + 0xd4]
mov dword [esp + 0xd8], ebx
cmp dword [ecx - 0xc], ebx
jne 0x40ac10
add eax, 0xfffffff0
mov dword [esp + 0xd8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ac06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x21
jmp 0x40bb04
mov eax, dword [ebp + 0xd8]
lea edi, [ebp + 0xd8]
mov dword [esp + 0x70], edi
cmp eax, ebx
je 0x40ac2f
push eax
call fcn.0042201d
add esp, 4
mov dword [edi], ebx
mov eax, dword [esi]
push 0x439c3c
push eax
push edi
call fcn.00421f53
mov ecx, dword [edi]
add esp, 0xc
cmp ecx, ebx
je 0x40bad4
cmp eax, ebx
jne 0x40bad4
push ecx
push 1
lea ecx, [esp + 0x6c]
push 2
push ecx
call fcn.00422467
add esp, 0x10
cmp eax, 1
je 0x40ac7c
lea ecx, [esp + 0x1c]
call fcn.00402050
mov eax, 0x23
jmp 0x40bb04
mov edx, 0xfeff
lea ecx, [esp + 0x28]
cmp word [esp + 0x64], dx
jne 0x40acf4
push str.__detected_as_Unicode.
call fcn.00404000
push esi
lea eax, [esp + 0x48]
push str.INFO:_Input_file_for_restore_operation:__
push eax
mov byte [esp + 0xe4], 1
call fcn.00403860
add esp, 8
mov ecx, esp
mov dword [esp + 0x60], esp
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
mov byte [esp + 0xe8], 2
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0x44]
call fcn.00402050
lea ecx, [esp + 0x28]
mov byte [esp + 0xd8], 0
call fcn.00402050
jmp 0x40ad80
push str.__detected_as_ANSI.
call fcn.00404000
push esi
lea eax, [esp + 0x48]
push str.INFO:_Input_file_for_restore_operation:__
push eax
mov byte [esp + 0xe4], 3
call fcn.00403860
add esp, 8
mov ecx, esp
mov dword [esp + 0x60], esp
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
mov byte [esp + 0xe8], 4
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0x44]
call fcn.00402050
lea ecx, [esp + 0x28]
mov byte [esp + 0xd8], 0
call fcn.00402050
mov eax, dword [edi]
push eax
call fcn.0042201d
mov esi, dword [esi]
push 0x438648
push esi
push edi
call fcn.00421f53
add esp, 0x10
cmp dword [edi], ebx
je 0x40bac9
cmp eax, ebx
jne 0x40bac9
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x2000
or eax, ecx
jge 0x40adaa
push 0x2000
lea ecx, [esp + 0x20]
call fcn.00402160
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx]
push edx
push 0x1ffe
push esi
call fcn.00422106
add esp, 0xc
test eax, eax
je 0x40bab5
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042159c
xor edi, edi
add esp, 8
cmp eax, edi
jl 0x40baab
cmp eax, dword [esi - 8]
jg 0x40baab
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, edi
je 0x40ae05
push eax
call esi
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x40ae14
push eax
call esi
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x40ae23
push eax
call esi
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x40ae32
push eax
call esi
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x40ae41
push eax
call esi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x40ae50
push eax
call esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x68], edi
call fcn.00414de3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40abad
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0xd8], 5
call fcn.00414de3
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x40abad
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x439bb4
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 6
mov dword [esp + 0x28], edi
call fcn.00403570
push 0x439bb0
lea ecx, [esp + 0x20]
call fcn.004035e0
mov ebx, dword [esp + 0x1c]
cmp dword [ebx - 0xc], edi
jge 0x40aeea
or esi, 0xffffffff
jmp 0x40af07
push 0x439ba8
push ebx
call fcn.00420df2
add esp, 8
cmp eax, edi
jne 0x40af01
or esi, 0xffffffff
jmp 0x40af07
sub eax, ebx
sar eax, 1
mov esi, eax
push esi
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402970
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xdc], 7
call fcn.00403950
mov eax, dword [esp + 0xc0]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40af56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx - 0xc]
lea eax, [esi + 1]
cmp eax, edi
jl 0x40af81
cmp eax, ecx
jg 0x40af81
lea ecx, [ebx + eax*2]
push 0x439ba0
push ecx
call fcn.00420df2
add esp, 8
cmp eax, edi
je 0x40af81
sub eax, ebx
sar eax, 1
mov edi, eax
jmp 0x40af84
or edi, 0xffffffff
mov edx, edi
sub edx, esi
dec edx
push edx
add esi, 2
push esi
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x28]
call fcn.00402840
mov eax, dword [eax]
push eax
call fcn.004220fb
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa4]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40afd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 0xc]
sub eax, edi
sub eax, 2
push eax
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x24]
call fcn.004028f0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xdc], 8
call fcn.00403950
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b028
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
call fcn.004033c0
mov edi, dword [esp + 0x14]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x54], esp
mov esi, esp
push edi
mov dword [esp + 0x8c], edi
call fcn.004021b0
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00403b50
test eax, eax
je 0x40b162
push str.__because_a_filter_keyword_matched.
lea ecx, [esp + 0x80]
call fcn.00404000
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xd0]
push 0x439b48
push edx
mov byte [esp + 0xe4], 9
call fcn.00403860
add esp, 8
mov ecx, esp
mov dword [esp + 0x40], esp
lea edx, [esp + 0x80]
push edx
push eax
push ecx
mov byte [esp + 0xe8], 0xa
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
mov eax, dword [esp + 0xcc]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xd8], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad80
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
jmp 0x40ad80
push 0x439b44
lea ecx, [esp + 0x7c]
call fcn.00404000
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x94]
push str.INFO:_Restoring_ACL_of:__
push ecx
mov byte [esp + 0xe4], 0xb
call fcn.00403860
add esp, 8
mov edx, esp
mov dword [esp + 0x54], esp
lea ecx, [esp + 0x7c]
push ecx
push eax
push edx
mov byte [esp + 0xe8], 0xc
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
mov eax, dword [esp + 0x90]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b1e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b209
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00414de3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40abad
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
mov byte [esp + 0xd8], 0xd
jl 0x40b406
push 0x439b08
push ebx
call fcn.00420df2
add esp, 8
test eax, eax
je 0x40b2f7
sub eax, ebx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x40b2f7
lea edi, [esi + 2]
push edi
push 0x439b04
lea ecx, [esp + 0x20]
mov ebx, 0x20000000
call fcn.00402250
cmp eax, 0xffffffff
je 0x40b2c2
sub eax, esi
sub eax, 2
push eax
push edi
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x24]
call fcn.00402840
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xdc], 0xe
call fcn.00403950
lea ecx, [esp + 0xb0]
mov byte [esp + 0xd8], 0xd
call fcn.00402050
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
jl 0x40b2ec
push 0x439b00
push esi
call fcn.00420df2
add esp, 8
test eax, eax
je 0x40b2ec
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40b2ec
mov ebx, 0x80000000
or ebx, 4
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jl 0x40b406
push 0x439af8
push ebx
call fcn.00420df2
add esp, 8
test eax, eax
je 0x40b3ba
sub eax, ebx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x40b3ba
or dword [esp + 0x24], 8
lea esi, [edi + 2]
push esi
push 0x439b04
lea ecx, [esp + 0x20]
mov dword [esp + 0x58], 0x10000000
call fcn.00402250
cmp eax, 0xffffffff
je 0x40b388
sub eax, edi
sub eax, 2
push eax
push esi
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x24]
call fcn.00402840
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xdc], 0xf
call fcn.00403950
lea ecx, [esp + 0x98]
mov byte [esp + 0xd8], 0xd
call fcn.00402050
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
jl 0x40b3b2
push 0x439b00
push esi
call fcn.00420df2
add esp, 8
test eax, eax
je 0x40b3b2
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
mov eax, 0x40000000
jne 0x40b3b6
mov eax, dword [esp + 0x50]
or dword [esp + 0x24], eax
cmp dword [ebx - 0xc], 0
jl 0x40b406
push 0x439af0
push ebx
call fcn.00420df2
add esp, 8
test eax, eax
je 0x40b3e0
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40b3e0
or dword [esp + 0x24], 1
cmp dword [ebx - 0xc], 0
jl 0x40b406
push 0x439ae8
push ebx
call fcn.00420df2
add esp, 8
test eax, eax
je 0x40b406
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40b406
or dword [esp + 0x24], 2
push 0
lea eax, [esp + 0x34]
push eax
push 1
push ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x40b5e1
cmp dword [ebp + 0x48], eax
je 0x40b9d2
push 0x439ae4
lea ecx, [esp + 0x78]
call fcn.00404000
mov byte [esp + 0xd8], 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0xac]
push ecx
mov ecx, ebp
call fcn.00402ef0
mov esi, eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xbc]
push str.ERROR:_Restoring_ACL_of__
push eax
mov byte [esp + 0xe4], 0x11
call fcn.00403860
lea ecx, [esp + 0x80]
push ecx
push eax
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0xf0], 0x12
call fcn.004036c0
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
push eax
push ecx
mov byte [esp + 0xe8], 0x13
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 0x12
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b4df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b50a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa8]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b535
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b55d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0xd8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b585
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0xd8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b5a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov byte [esp + 0xd8], 0
add ecx, 0xc
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad80
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40ad80
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x44]
push ecx
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x54]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x48]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
je 0x40b6fb
cmp dword [ebp + 0x48], 0
je 0x40ba04
push 0x439ae4
lea ecx, [esp + 0x84]
call fcn.00404000
mov byte [esp + 0xd8], 0x14
call esi
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, ebp
call fcn.00402ef0
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x90]
push str.ERROR:_Restoring_ACL_of__
push edx
mov byte [esp + 0xe4], 0x15
call fcn.00403860
lea ecx, [esp + 0x8c]
push ecx
push eax
lea edx, [esp + 0xdc]
push edx
mov byte [esp + 0xf0], 0x16
call fcn.004036c0
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
push eax
push ecx
mov byte [esp + 0xe8], 0x17
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0xc8]
call fcn.00402050
lea ecx, [esp + 0x8c]
call fcn.00402050
lea ecx, [esp + 0x94]
call fcn.00402050
lea ecx, [esp + 0x80]
call fcn.00402050
jmp 0x40b9aa
mov edx, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edx
push 0x40
call esi
mov edi, eax
mov eax, dword [esp + 0x54]
push eax
push 0x40
mov dword [esp + 0x54], edi
call esi
mov ecx, dword [esp + 0x60]
push ecx
mov ebx, eax
push 0x40
mov dword [esp + 0x48], ebx
call esi
mov edx, dword [esp + 0x58]
push edx
push 0x40
mov dword [esp + 0x40], eax
call esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
push eax
push 0x40
call esi
lea ecx, [esp + 0x68]
push ecx
push eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x60]
push edx
mov edx, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x70]
push ecx
push edx
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x6c]
push eax
push ebx
lea ecx, [esp + 0x48]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x40b845
cmp dword [ebp + 0x48], eax
je 0x40b9d2
push 0x439ae4
lea ecx, [esp + 0x70]
call fcn.00404000
mov byte [esp + 0xd8], 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xb0]
push eax
mov ecx, ebp
call fcn.00402ef0
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa8]
push str.ERROR:_Restoring_ACL_of__
push edx
mov byte [esp + 0xe4], 0x19
call fcn.00403860
lea ecx, [esp + 0x78]
push ecx
push eax
lea edx, [esp + 0xb0]
push edx
mov byte [esp + 0xf0], 0x1a
call fcn.004036c0
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
push eax
push ecx
mov byte [esp + 0xe8], 0x1b
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0x9c]
call fcn.00402050
lea ecx, [esp + 0xa4]
call fcn.00402050
lea ecx, [esp + 0xac]
call fcn.00402050
lea ecx, [esp + 0x6c]
call fcn.00402050
jmp 0x40b9aa
push 0x44
call fcn.00414182
add esp, 4
mov dword [esp + 0x50], eax
mov byte [esp + 0xd8], 0x1c
test eax, eax
je 0x40b86b
push ebp
mov ecx, eax
call fcn.004070a0
mov esi, eax
jmp 0x40b86d
xor esi, esi
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edx - 0xc]
push ecx
inc eax
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xf4], 0xd
call fcn.00402290
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.00407160
mov ecx, esi
call fcn.0040a430
mov edi, eax
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [ebp + 0x44], eax
call fcn.00401fb0
xor ebx, ebx
cmp edi, ebx
je 0x40b9aa
push str.__failed_with:
lea ecx, [esp + 0x48]
call fcn.00404000
mov ecx, dword [ebp + 0x44]
push ecx
lea edx, [esp + 0x60]
push edx
mov ecx, ebp
mov byte [esp + 0xe0], 0x1d
call fcn.00402ef0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc8]
push str.ERROR:_Writing_SD_to__
push ecx
mov byte [esp + 0xe4], 0x1e
call fcn.00403860
lea edx, [esp + 0x50]
push edx
push eax
lea eax, [esp + 0xd0]
push eax
mov byte [esp + 0xf0], 0x1f
call fcn.004036c0
add esp, 0x14
mov ecx, esp
mov dword [esp + 0x40], esp
push esi
push eax
push ecx
mov byte [esp + 0xe8], 0x20
call fcn.004036c0
add esp, 0xc
mov ecx, ebp
call fcn.00403a30
lea ecx, [esp + 0xbc]
call fcn.00402050
lea ecx, [esp + 0xc4]
call fcn.00402050
lea ecx, [esp + 0x5c]
call fcn.00402050
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], 0xd
call fcn.00402050
mov eax, dword [ebp + 0x44]
cmp eax, 5
je 0x40b9a3
cmp eax, 2
je 0x40b9a3
cmp dword [ebp + 0x48], ebx
je 0x40ba10
mov dword [ebp + 0x44], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x20]
call fcn.00402050
lea ecx, [esp + 0x18]
call fcn.00402050
lea ecx, [esp + 0x14]
mov byte [esp + 0xd8], 0
call fcn.00402050
jmp 0x40ad80
mov dword [esp + 0x2c], 0x1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x20]
mov dword [ebp + 0x44], eax
call fcn.00402050
lea ecx, [esp + 0x18]
call fcn.00402050
lea ecx, [esp + 0x14]
call fcn.00402050
mov edi, dword [esp + 0x2c]
jmp 0x40ba35
mov dword [esp + 0x2c], 0x1b
call esi
jmp 0x40b9e0
lea ecx, [esp + 0x20]
call fcn.00402050
lea ecx, [esp + 0x18]
call fcn.00402050
lea ecx, [esp + 0x14]
call fcn.00402050
cmp edi, 0x2c
jne 0x40ba35
mov dword [ebp + 0x44], ebx
xor edi, edi
mov esi, dword [esp + 0x70]
mov eax, dword [esi]
test eax, eax
je 0x40ba4e
push eax
call fcn.0042201d
add esp, 4
mov dword [esi], 0
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x40ba67
push eax
call esi
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40ba72
push eax
call esi
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40ba7d
push eax
call esi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40ba88
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40ba93
push eax
call esi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40ba9e
push eax
call esi
lea ecx, [esp + 0x1c]
call fcn.00402050
mov eax, edi
jmp 0x40bb04
push 0x80070057
call fcn.00401090
push 0xffffffffffffffff
lea ecx, [esp + 0x20]
call fcn.00401fb0
mov edi, dword [esp + 0x2c]
jmp 0x40ba35
lea ecx, [esp + 0x1c]
call fcn.00402050
jmp 0x40baff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0xd8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40baff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x22
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret