Function at 0x406650
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5844e0
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5eb6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [ebp - 0x248]
mov dword [ebp - 0x14c], esi
mov dword [esi + 0xf0], 0x32
call fcn.00401eb0
push 0x5f399c
mov ebx, edi
mov dword [ebp - 4], 0
call fcn.00401000
mov eax, dword [0x5f3a98]
mov ecx, dword [0x5f3a9c]
mov edi, dword [ebp - 0x200]
mov dword [ebp - 0x16c], ecx
test eax, eax
je 0x406719
cmp dword [0x5f3af4], 0
jne 0x406719
test edi, edi
jne 0x406719
push esi
call fcn.00409e20
test eax, eax
je 0x406719
mov edx, dword [esi + 0x20]
push edi
push edi
push 0x404
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, ebx
call fcn.00401f50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055064f
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x32
push 0x403
push eax
call ebx
test edi, edi
jne 0x406738
push esi
call fcn.00408700
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov ecx, dword [esi + 0x20]
push 0
push 0x37
push 0x403
push ecx
mov edi, eax
call ebx
mov dword [esi + 0xac], edi
push 0x11c
xor edi, edi
lea edx, [ebp - 0x130]
push edi
push edx
call fcn.00553a60
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x130], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x120]
imul ecx, ecx, 0x64
add ecx, dword [ebp - 0x12c]
movzx edx, word [ebp - 0x1c]
imul ecx, ecx, 0x64
add ecx, dword [ebp - 0x128]
movzx eax, word [ebp - 0x1a]
imul ecx, ecx, 0x64
add ecx, edx
imul ecx, ecx, 0x64
add ecx, eax
mov dword [esi + 0xb8], ecx
xor ecx, ecx
cmp byte [ebp - 0x16], 1
mov dword [ebp - 0x15c], edi
setne cl
mov dword [ebp - 0x164], edi
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x168], edi
mov dword [esi + 0xd0], ecx
call fcn.00453e50
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4067f4
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x144], edi
mov byte [ebp - 4], 1
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x406834
push 0x104
lea ecx, [ebp - 0x144]
call fcn.00403620
mov edi, dword [ebp - 0x144]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00551122
add esp, 8
test eax, eax
jl 0x4070f8
cmp eax, dword [edi - 8]
jg 0x4070f8
xor ecx, ecx
mov dword [edi - 0xc], eax
push 3
lea edx, [ebp - 0x140]
mov word [edi + eax*2], cx
push edx
lea ecx, [ebp - 0x144]
call fcn.0040ab10
mov eax, dword [eax]
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x160]
push edx
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x15c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x160]
mul dword [ebp - 0x164]
mov ecx, dword [ebp - 0x15c]
push 0
push ecx
push edx
push eax
call fcn.00557990
shrd eax, edx, 0x14
push 0
shr edx, 0x14
push 0x3c
mov dword [esi + 0xcc], edx
mov edx, dword [esi + 0x20]
push 0x403
push edx
mov dword [esi + 0xc8], eax
call ebx
mov dword [esi + 0xf0], 0x41
call fcn.00453e50
xor ecx, ecx
cmp dword [ebp - 0x214], 4
jne 0x4069f5
test eax, eax
setne cl
test ecx, ecx
jne 0x406931
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x150], esp
mov edi, esp
push eax
lea ebx, [ebp - 0x138]
call fcn.00403760
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.004115f0
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x144]
mov ecx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x41
push 0x403
push ecx
call ebx
cmp dword [ebp - 0x238], 0
mov dword [esi + 0xf0], 0x46
jne 0x406bcb
cmp dword [ebp - 0x248], 0
jne 0x406bcb
mov edx, dword [ebp - 0x154]
mov dword [esi + 0xc4], edx
jmp 0x407040
test eax, eax
setne cl
test ecx, ecx
jne 0x406a08
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x21c]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x150], esp
mov ebx, esp
push eax
call fcn.00403760
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.00413930
add esp, 8
mov dword [ebp - 0x154], eax
test eax, eax
je 0x406b9c
mov dword [ebp - 0x148], 0
call fcn.00453e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406a7f
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x138], ebx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x13c]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x406abd
push 0
lea ecx, [ebp - 0x13c]
call fcn.00403620
mov edx, dword [ebp - 0x13c]
lea esi, [ebp - 0x148]
mov ecx, edx
call fcn.00412050
test eax, eax
je 0x406b76
mov esi, dword [ebp - 0x148]
lea ecx, [ebp - 0x140]
push esi
push ecx
call fcn.00412920
add esp, 8
push eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 5
call fcn.004037d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
call fcn.00412640
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x140], eax
call fcn.0040aab0
mov ebx, dword [ebp - 0x138]
cmp dword [ebx - 0xc], 0
jl 0x406b70
push str..GPD
push ebx
call fcn.0055269b
add esp, 8
test eax, eax
je 0x406b70
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x406b70
cmp dword [ebp - 0x140], 3
jne 0x406b70
mov dword [ebp - 0x154], 0
push esi
call sub.WINSPOOL.DRV_ClosePrinter
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b96
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov esi, dword [ebp - 0x14c]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4069ab
push 8
lea eax, [ebp - 0x138]
push eax
mov ecx, 0x5f38c8
call fcn.00432310
mov byte [ebp - 4], 6
cmp dword [ebp - 0x214], 4
jne 0x406bfd
push 4
push str.scn_
lea ecx, [ebp - 0x138]
call fcn.00405900
push 0xd
push str.ENSTRMAPI.DLL
lea ecx, [ebp - 0x138]
call fcn.00405900
mov eax, dword [ebp - 0x138]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x150], esp
mov ebx, esp
push eax
call fcn.00403760
add esp, 4
lea ecx, [ebp - 0x1c0]
add eax, 0x10
push ecx
mov dword [ebx], eax
call fcn.00444e50
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 7
call fcn.004617a2
lea edx, [ebp - 0x170]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x220]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x150], esp
mov ebx, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [ebx], eax
add esp, 4
lea ebx, [ebp - 0x1c0]
call fcn.00444fd0
lea ebx, [esi + 0xf4]
lea eax, [ebp - 0x1bc]
cmp ebx, eax
je 0x406cba
mov eax, dword [ebp - 0x1b4]
mov edi, ebx
call fcn.00445e60
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 0x1b4]
push ecx
mov ecx, dword [ebp - 0x1b8]
call fcn.0040adb0
mov dword [ebp - method.CENSFLib.virtual_0], vtable.CENSFLib.0
call fcn.00453e50
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406ce0
push 0x80004005
call fcn.004038e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x198], ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x178], ebx
push ebx
push 0x46
mov byte [ebp - 4], 9
mov ecx, dword [esi + 0x20]
push 0x403
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 8
lea edx, [ebp - 0x150]
push edx
mov ecx, 0x5f38c8
mov dword [esi + 0xf0], 0x4b
call fcn.00432310
push str.ENSF.dll
push eax
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0xa
call fcn.004024e0
add esp, 0xc
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x150]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x158]
push ecx
call fcn.00437180
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x158]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x14c], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
mov dword [ebp - 0x148], esp
mov edi, esp
push eax
call fcn.00403760
add eax, 0x10
mov dword [edi], eax
add esp, 4
lea edi, [ebp - 0x1a0]
mov byte [ebp - 4], 0xd
call fcn.0042ed10
cmp eax, ebx
je 0x406f77
mov dword [ebp - 0x13c], ebx
cmp dword [ebp - 0x198], ebx
je 0x406e26
lea edx, [ebp - 0x13c]
push edx
call dword [ebp - 0x18c]
mov edi, eax
jmp 0x406e2b
mov edi, 0xfffffff6
mov eax, dword [esi + 0x20]
push ebx
push 0x4b
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esi + 0xf0], 0x50
mov byte [ebp - 0x132], bl
mov byte [ebp - 0x131], bl
mov eax, 0x5f38b8
cmp edi, ebx
jne 0x406f4f
mov ecx, dword [ebp - 0x13c]
push ecx
push str.GetNICAvailablity_dwAvailable__d__r_n
call fcn.004053d0
mov eax, dword [ebp - 0x13c]
add esp, 8
cmp eax, 2
jb 0x406ef0
cmp eax, 3
ja 0x406ef0
cmp dword [ebp - 0x248], ebx
je 0x406ef0
lea ecx, [ebp - 0x148]
call fcn.004038b0
lea ecx, [ebp - 0x14c]
call fcn.004038b0
lea edx, [ebp - 0x131]
push edx
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x148]
push ecx
lea ebx, [ebp - 0x132]
lea edi, [ebp - 0x1a0]
mov byte [ebp - 4], 0x10
call fcn.0042ef80
lea ecx, [ebp - 0x14c]
mov edi, eax
call fcn.00403860
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 0xd
call fcn.00403860
mov eax, dword [ebp - 0x13c]
xor ebx, ebx
mov dword [esi + 0xb0], eax
cmp edi, ebx
je 0x406f27
push edi
push str.GetNICAvailablity_ERROR___d__r_n
mov eax, 0x5f38b8
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xc0], ebx
call fcn.004053d0
mov ecx, dword [ebp - 0x154]
add esp, 8
mov dword [esi + 0xc4], ecx
jmp 0x406f95
movzx edx, byte [ebp - 0x132]
movzx eax, byte [ebp - 0x131]
mov ecx, dword [ebp - 0x154]
mov dword [esi + 0xb4], edx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], ecx
jmp 0x406f95
push edi
push str.GetNICAvailablity_ERROR2___d__r_n
call fcn.004053d0
mov ecx, dword [ebp - 0x154]
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xc0], ebx
add esp, 8
mov dword [esi + 0xc4], ecx
jmp 0x406f95
push str.ENSF_Lib_Initialize_Error._r_n
mov eax, 0x5f38b8
call fcn.004053d0
add esp, 4
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xc0], ebx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x158]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406fbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406fe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 8
call fcn.0042ec80
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 7
call fcn.004617ed
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
call fcn.00444f70
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [ebp - 0x144]
mov ecx, dword [esi + 0x20]
push 0
push 0x50
push 0x403
push ecx
call ebx
push esi
mov dword [esi + 0xf0], 0x64
call fcn.004092f0
mov edx, dword [esi + 0x20]
push 0
push 0x64
push 0x403
push edx
call ebx
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x401
push eax
call ebx
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40709d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x224]
call fcn.00401fa0
jmp 0x4066f8
push 0x80070057
call fcn.004038e0
int3