Function at 0x524e60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2ac
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 4]
test eax, eax
jne 0x524f30
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
jne 0x524f30
mov dword [ebp - 0x220], 2
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x7459f0
mov dword [esp + 4], str.Empty_filename_passed_to_function
lea eax, [ebp - 0x220]
mov dword [esp], eax
call fcn.0072013c
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [esi]
mov dword [eax], 0x16
mov dword [ebx], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x525aa0
mov edx, dword [esi + 4]
mov dword [ebx + 4], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x5251f0
movzx eax, word [esi + 8]
mov word [ebx + 8], ax
movzx eax, word [esi + 0xa]
mov word [ebx + 0xa], ax
movzx eax, word [esi + 0xc]
mov word [ebx + 0xc], ax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x220]
mov dword [esp], esi
call fcn.00628750
xor eax, eax
sub esp, 4
lea ecx, [ebp - 0x220]
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov word [esp], ax
call fcn.006660c0
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x26c], eax
sub esp, 0xc
mov ecx, dword [edx]
test ecx, ecx
je 0x524f90
cmp ecx, 0xffffffff
je 0x524fa8
lock sub dword [edx], 1
mov edx, dword [ebp - 0x220]
jne 0x524fa8
nop
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x525971
test dword [edi], 0x10000
je 0x5251d0
mov eax, dword [edi + 4]
mov dword [ebp - 0x264], 0x880f80
test eax, 0x8000000
jne 0x525143
test eax, 0x10000
lea edi, [ebp - 0x230]
jne 0x525200
lea eax, [ebp - 0x264]
mov ecx, edi
mov dword [esp], eax
mov dword [ebp - 0x26c], eax
call fcn.0050fe40
mov eax, dword [ebp - 0x264]
sub esp, 4
mov edx, dword [eax + 4]
test edx, edx
je 0x52501f
mov ecx, edi
call fcn.00628610
test al, al
jne 0x525720
movzx ecx, word [ebp - 0x228]
mov eax, dword [ebp - 0x230]
mov edx, dword [ebp - 0x22c]
mov dword [ebx], eax
mov eax, 0x880f80
mov word [ebx + 8], cx
movzx ecx, word [ebp - 0x226]
mov dword [ebx + 4], edx
mov dword [ebp - 0x230], eax
mov edx, eax
mov dword [ebp - 0x22c], eax
mov word [ebx + 0xa], cx
movzx ecx, word [ebp - 0x224]
mov word [ebx + 0xc], cx
mov ecx, dword [0x880f80]
test ecx, ecx
je 0x525120
cmp ecx, 0xffffffff
je 0x525093
mov edx, 0xffffffff
lock xadd dword [0x880f80], edx
mov eax, dword [ebp - 0x230]
cmp edx, 1
je 0x525110
mov edx, dword [eax]
test edx, edx
je 0x5250f1
cmp edx, 0xffffffff
je 0x5250aa
lock sub dword [eax], 1
mov eax, dword [ebp - 0x230]
je 0x5250f1
mov eax, dword [ebp - 0x264]
mov edx, dword [eax]
test edx, edx
je 0x5250cf
cmp edx, 0xffffffff
je 0x524f22
lock sub dword [eax], 1
mov eax, dword [ebp - 0x264]
jne 0x524f22
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5250aa
mov edx, dword [ebp - 0x22c]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.004a4c50
mov eax, dword [ebp - 0x230]
jmp 0x525093
lea eax, [ebp - 0x264]
mov edx, esi
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x25c]
call fcn.004a02f0
mov eax, dword [ebp - 0x264]
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x264], edx
mov edx, dword [eax]
test edx, edx
je 0x5251a1
cmp edx, 0xffffffff
lea edi, [ebp - 0x230]
je 0x524fea
mov edx, 0xffffffff
lock xadd dword [eax], edx
cmp edx, 1
lea edi, [ebp - 0x230]
jne 0x524fea
mov eax, dword [ebp - 0x25c]
mov dword [esp + 8], 4
lea edi, [ebp - 0x230]
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x524fea
mov dword [esp + 8], 0x10000
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.005238b0
jmp 0x524fc1
lock add dword [edx], 1
jmp 0x524f0a
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x220]
mov dword [esp], esi
mov dword [ebp - 0x260], 0x880f80
mov dword [ebp - 0x26c], eax
call fcn.00628750
lea ecx, [ebp - 0x220]
sub esp, 4
call fcn.00665e50
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2200000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 7
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 0x220]
sub esp, 0x1c
mov edx, dword [eax]
test edx, edx
je 0x525700
cmp edx, 0xffffffff
je 0x525295
lock sub dword [eax], 1
mov eax, dword [ebp - 0x220]
je 0x525700
cmp edi, 0xffffffff
je 0x5259b0
mov dword [esp], 0x4000
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x270], eax
je 0x525fd1
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x4000
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x270]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x900a8
mov dword [esp], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
je 0x525430
mov eax, dword [ebp - 0x270]
mov eax, dword [eax]
cmp eax, 0xa0000003
je 0x525c90
cmp eax, 0xa000000c
je 0x525ac1
mov eax, dword [ebp - 0x260]
cmp dword [eax + 4], 4
jle 0x525430
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x26c], ecx
cmp word [eax + edx], 0x5c
jne 0x52543c
cmp word [eax + edx + 4], 0x3f
jne 0x52543c
cmp word [eax + edx + 6], 0x5c
jne 0x52543c
mov dword [esp], ecx
lea ecx, [ebp - 0x258]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 4
call fcn.00665320
mov eax, dword [ebp - 0x260]
mov edx, dword [ebp - 0x258]
lea ecx, [ebp - 0x258]
sub esp, 0xc
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], edx
call fcn.005b1050
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x23c]
mov dword [esp + 4], 3
mov dword [ebp - 0x274], ecx
mov dword [esp], eax
call fcn.00666500
push ecx
push ecx
mov ecx, dword [ebp - 0x274]
mov dword [esp], 3
mov dword [esp + 4], 0x745ab1
mov dword [esp + 8], ecx
call fcn.006fcb10
test al, al
je 0x52543c
mov ecx, dword [ebp - 0x26c]
mov word [esp + 8], 0x5c
mov dword [esp + 4], 3
mov dword [esp], 0
call fcn.005afe80
sub esp, 0xc
jmp 0x52543c
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x270]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [0x73ba00]
sub esp, 4
cmp eax, 0xffffffff
jl 0x525471
movzx eax, byte [0x739360]
test al, al
je 0x525b50
mov dword [esp + 4], 0x1d
mov dword [esp], str.Volume__a_z__0_9____
call fcn.005ac290
mov dword [ebp - 0x220], eax
lea edi, [ebp - 0x220]
lea eax, [ebp - 0x248]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
mov ecx, eax
mov dword [ebp - 0x270], eax
call fcn.005ab190
mov eax, dword [ebp - 0x220]
sub esp, 0xc
mov edx, dword [eax]
test edx, edx
je 0x525a83
cmp edx, 0xffffffff
je 0x5254df
lock sub dword [eax], 1
mov eax, dword [ebp - 0x220]
je 0x525a83
mov eax, dword [ebp - 0x26c]
mov ecx, dword [ebp - 0x270]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006630b0
sub esp, 0xc
test eax, eax
lea edi, [ebp - 0x230]
jne 0x525698
mov ecx, dword [ebp - 0x270]
call fcn.00662f70
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x220]
mov dword [esp], eax
call fcn.00666500
mov eax, dword [ebp - 0x218]
sub esp, 8
lea ecx, [ebp - 0x23c]
mov dword [esp + 4], 0
mov dword [ebp - 0x274], ecx
add eax, 4
mov dword [esp], eax
call fcn.005b0ff0
mov edi, dword [ebp - 0x23c]
sub esp, 8
add edi, dword [edi + 0xc]
mov dword [esp + 4], 4
mov dword [esp], 0x745ad3
mov dword [esp + 8], edi
add edi, 8
call fcn.00566270
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x220]
add eax, eax
test edx, edx
je 0x525ab0
mov ecx, dword [edx]
mov edx, dword [ebp - 0x21c]
lea edx, [ecx + edx*2]
add edx, dword [ecx + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x274]
call fcn.00665e50
lea edx, [ebp - 0x244]
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
sub esp, 0x10
test eax, eax
lea edi, [ebp - 0x230]
je 0x525660
lea eax, [ebp - 0x220]
mov dword [esp + 8], 0xffffffff
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.005b01a0
mov ecx, dword [ebp - 0x270]
call fcn.00662f70
mov ecx, dword [ebp - 0x26c]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.005aff40
mov eax, dword [ebp - 0x230]
sub esp, 0xc
mov edx, dword [eax]
test edx, edx
je 0x525d20
cmp edx, 0xffffffff
je 0x525660
lock sub dword [eax], 1
mov eax, dword [ebp - 0x230]
je 0x525d20
nop
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
test edx, edx
je 0x525680
cmp edx, 0xffffffff
je 0x525698
lock sub dword [eax], 1
mov eax, dword [ebp - 0x23c]
jne 0x525698
lea esi, [esi]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
mov ecx, dword [ebp - 0x270]
call fcn.005ab370
mov eax, dword [ebp - 0x264]
mov edx, dword [ebp - 0x260]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x264], edx
mov edx, dword [eax]
test edx, edx
je 0x5256d4
cmp edx, 0xffffffff
je 0x524fea
lock sub dword [eax], 1
jne 0x524fea
mov eax, dword [ebp - 0x260]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x524fea
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x525295
lea eax, [ebp - 0x220]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.005231a0
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x244]
mov dword [esp], eax
call fcn.006294a0
mov eax, dword [ebp - 0x244]
sub esp, 4
lea ecx, [ebp - 0x23c]
mov dword [esp + 4], 0
mov dword [ebp - 0x274], ecx
mov eax, dword [eax + 4]
add eax, 1
mov dword [esp], eax
call fcn.005b0ff0
mov eax, dword [ebp - 0x244]
mov esi, dword [ebp - 0x23c]
sub esp, 8
mov edx, dword [eax + 4]
add esi, dword [esi + 0xc]
add eax, dword [eax + 0xc]
lea ecx, [edx + edx]
mov dword [ebp - 0x270], edx
mov dword [esp], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x270]
mov eax, 0x2f
mov ecx, dword [ebp - 0x26c]
mov word [esi + edx*2], ax
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 4]
mov dword [esp + 8], edx
add eax, dword [eax + 0xc]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.005ad380
mov eax, dword [ebp - 0x23c]
sub esp, 0xc
mov edx, dword [eax]
test edx, edx
je 0x525a20
cmp edx, 0xffffffff
je 0x5257ff
lock sub dword [eax], 1
mov eax, dword [ebp - 0x23c]
je 0x525a20
mov eax, dword [ebp - 0x244]
mov edx, dword [eax]
test edx, edx
je 0x525a00
cmp edx, 0xffffffff
je 0x525824
lock sub dword [eax], 1
mov eax, dword [ebp - 0x244]
je 0x525a00
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
test edx, edx
je 0x5259e0
cmp edx, 0xffffffff
je 0x525849
lock sub dword [eax], 1
mov eax, dword [ebp - 0x21c]
je 0x5259e0
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
test edx, edx
je 0x5259c0
cmp edx, 0xffffffff
je 0x52586e
lock sub dword [eax], 1
mov eax, dword [ebp - 0x220]
je 0x5259c0
mov eax, dword [ebp - 0x26c]
mov esi, dword [ebp - 0x274]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00585990
lea ecx, [ebp - 0x220]
mov dword [esp], esi
call fcn.0050fe40
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x230]
sub esp, 4
mov dword [ebp - 0x230], edx
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x22c], edx
movzx edx, word [ebp - 0x218]
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x228], dx
movzx edx, word [ebp - 0x216]
mov word [ebp - 0x226], dx
movzx edx, word [ebp - 0x214]
mov word [ebp - 0x224], dx
mov edx, dword [eax]
test edx, edx
je 0x525a60
cmp edx, 0xffffffff
je 0x52590a
lock sub dword [eax], 1
je 0x525a60
mov eax, dword [ebp - 0x220]
mov edx, dword [eax]
test edx, edx
je 0x525a40
cmp edx, 0xffffffff
je 0x52592f
lock sub dword [eax], 1
mov eax, dword [ebp - 0x220]
je 0x525a40
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
test edx, edx
je 0x525954
cmp edx, 0xffffffff
je 0x52501f
lock sub dword [eax], 1
mov eax, dword [ebp - 0x23c]
jne 0x52501f
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52501f
mov dword [ebp - 0x220], 2
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x7459f0
mov dword [esp + 4], str.Broken_filename_passed_to_function
jmp 0x524eca
lea edi, [ebp - 0x230]
jmp 0x5256a3
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52586e
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x525849
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x525824
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5257ff
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52592f
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52590a
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x5254df
lock add dword [edx], 1
jmp 0x524ef6
mov ecx, dword [0x880f8c]
lea edx, [ecx + 0x880f80]
jmp 0x5255aa
mov ecx, dword [ebp - 0x270]
lea edx, [ebp - 0x254]
movzx eax, word [ecx + 0xa]
shr eax, 1
mov dword [esp + 8], eax
movzx eax, word [ecx + 8]
mov dword [esp], edx
shr eax, 1
lea eax, [ecx + eax*2 + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], eax
call fcn.005b01a0
mov eax, dword [ebp - 0x260]
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x260], edx
mov edx, dword [eax]
test edx, edx
je 0x525b2a
cmp edx, 0xffffffff
je 0x52533c
lock sub dword [eax], 1
jne 0x52533c
mov eax, dword [ebp - 0x254]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52533c
mov dword [esp], 0x739360
call fcn.0070b990
test eax, eax
je 0x525471
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x274], eax
mov dword [esp], eax
lea ecx, [ebp - 0x24c]
mov eax, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x24c], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], 8
mov dword [ebp - 0x278], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x525d90
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
mov dword [esp + 4], 0x2000e
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
mov eax, dword [ebp - 0x278]
call eax
sub esp, 0xc
test eax, eax
jne 0x525d5b
lea eax, [ebp - 0x244]
mov ecx, 0x100
mov dword [ebp - 0x244], 0
mov word [ebp - 0x240], cx
mov dword [esp + 0x28], 0x73b8a8
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
sub esp, 0x2c
test eax, eax
jne 0x525d3d
mov dword [0x73ba00], 0xffffffff
mov dword [esp], 0x739360
call fcn.0070bac0
mov dword [esp], 0x70cb30
call fcn.004014c0
jmp 0x525471
mov ecx, dword [ebp - 0x270]
lea edx, [ebp - 0x250]
movzx eax, word [ecx + 0xa]
shr eax, 1
mov dword [esp + 8], eax
movzx eax, word [ecx + 8]
mov dword [esp], edx
shr eax, 1
lea eax, [ecx + eax*2 + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], eax
call fcn.005b01a0
mov eax, dword [ebp - 0x260]
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x260], edx
mov edx, dword [eax]
test edx, edx
je 0x525cf9
cmp edx, 0xffffffff
je 0x52533c
lock sub dword [eax], 1
jne 0x52533c
mov eax, dword [ebp - 0x250]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x52533c
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
jmp 0x525660
mov eax, dword [0x73b8a8]
mov dword [esp], 0x73956c
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
sub esp, 8
jmp 0x525c5f
mov eax, dword [ebp - 0x24c]
mov dword [esp + 8], 0x73b890
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
mov eax, dword [ebp - 0x24c]
sub esp, 0xc
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x525bdf
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [ebp - 0x270], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x27c], eax
call eax
mov edx, dword [ebp - 0x248]
sub esp, 0x14
test edx, edx
jne 0x525df8
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x525ba7
mov dword [esp], edx
mov dword [ebp - 0x284], edx
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x284]
je 0x525edb
mov eax, dword [ebp - 0x270]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
mov eax, dword [ebp - 0x27c]
call eax
sub esp, 0x14
test eax, eax
jne 0x525e62
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
call sub.msvcrt.dll_free
jmp 0x525de5
mov eax, dword [ebp - 0x280]
mov eax, dword [eax]
mov dword [ebp - 0x270], eax
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push edx
mov dword [ebp - 0x27c], eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x739580], eax
je 0x52602c
mov eax, dword [ebp - 0x270]
mov dword [esp + 8], eax
mov eax, dword [0x739580]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
sub esp, 0xc
test eax, eax
je 0x525e52
mov eax, dword [0x739580]
mov dword [esp], 0x7398a8
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_BuildTrusteeWithSidW]
push eax
push eax
jmp 0x525e52
call fcn.0071fff4
mov edx, dword [ebp - 0x248]
jmp 0x525e1a
lea eax, [ebp - 0x260]
mov dword [ebp - 0x26c], eax
call fcn.0071fff4
jmp 0x5252b8
call fcn.0071fff4
jmp 0x525e95