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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5541
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x52ad60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x280], ecx
mov dword [ebp - 0x284], ecx
and dword [ebp - 0x228], 0xfffffe00
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x258]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x258], eax
mov eax, dword [0x52fe1c]
mov dword [ebp - 0x254], 0
test al, 1
jne 0x418cf4
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
mov ecx, dword [0x52c374]
push 0xffffffffffffffff
mov eax, dword [ecx]
push str.success
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.error
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.004493f0
lea ecx, [ebp - 0x220]
call fcn.004338d0
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 4
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x418daa
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x418db5
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.MyDocumentsFolder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.004493f0
cmp dword [ebp - 0x268], 0x10
jb 0x418e11
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
or edi, 0xffffffff
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x418e52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.004341c0
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x418ebe
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x418ec9
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.AppDataFolder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.004493f0
cmp dword [ebp - 0x268], 0x10
jb 0x418f25
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418f63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00434020
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xa
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x418fcf
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x418fda
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.LocalAppDataFolder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.004493f0
cmp dword [ebp - 0x268], 0x10
jb 0x419036
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419074
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00433a90
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xd
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x4190e0
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x4190eb
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.LocalLowAppDataFolder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xf
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xe
call fcn.004493f0
cmp dword [ebp - 0x268], 0x10
jb 0x419147
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419185
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00433b70
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x10
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x4191f1
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x4191fc
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.ProgFiles32Folder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x12
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x11
call fcn.004493f0
cmp dword [ebp - 0x268], 0x10
jb 0x419258
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419296
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00433d30
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x13
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x419302
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41930d
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.ProgFiles64Folder
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x15
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x14
call fcn.004493f0
cmp dword [ebp - 0x268], 0x10
jb 0x419369
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4193a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.004b84f0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x16
test eax, 0xffff0000
jne 0x41941b
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x419446
push esi
push eax
lea ecx, [ebp - 0x264]
call fcn.00404ab0
jmp 0x419446
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419424
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x264]
call fcn.004046f0
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x17
call fcn.00431370
mov esi, eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x52fe1c]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x4194ab
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x4194b6
mov esi, dword [esi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x260], eax
push ecx
push str.temp
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x19
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x18
call fcn.004493f0
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x268], 0x10
jb 0x419516
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov dword [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [0x52f558]
mov ebx, eax
test esi, esi
jne 0x41958e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4195ac
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x52f558], esi
test esi, esi
je 0x4195ac
mov edx, dword [0x52f408]
lea ecx, [edx + 1]
lea eax, [edx + 2]
imul eax, ecx
imul eax, edx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 3
jne 0x41958e
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esi, dword [0x52f558]
lea eax, [ebp - 0x220]
push eax
push ebx
call esi
test eax, eax
je 0x4195ac
cmp dword [ebp - 0x220], 0
je 0x4195ac
mov ecx, 1
jmp 0x4195ae
xor ecx, ecx
mov eax, dword [ebp - 0x258]
and eax, 0xffffff05
or eax, 5
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x260], cl
push ecx
push str.is64bitos
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x1a
call fcn.00449e90
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x17
call fcn.004493f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419627
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
jmp 0x419757
mov dword [ebp - 0x250], 0x514aec
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
mov byte [ebp - 0x234], 0
mov byte [ebp - 4], 0x22
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x23
call fcn.0044c090
mov edx, eax
mov byte [ebp - 4], 0x24
cmp dword [edx + 0x14], 0x10
jb 0x4197c8
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x4197e7
xor ecx, ecx
jmp 0x4197ff
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x280], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4197f2
sub ecx, dword [ebp - 0x280]
push ecx
push edx
mov ecx, ebx
call fcn.004012f0
lea ecx, [ebp - 0x288]
call fcn.004312a0
add esp, 0x18
mov byte [ebp - 4], 0x25
mov edx, dword [eax]
lea ebx, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x419879
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x419864
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x419864
call fcn.004047b0
mov dword [ebp - 0x280], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x419859
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x280]
lea esi, [eax + 0x10]
mov dword [ebp - 0x264], esi
jmp 0x419879
push dword [edx - 0xc]
lea ecx, [ebp - 0x264]
push edx
call fcn.004046f0
mov esi, dword [ebp - 0x264]
mov byte [ebp - 4], 0x24
mov edx, dword [ebp - 0x288]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41989c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x23
cmp dword [ebp - 0x268], 0x10
jb 0x4198b7
push dword [ebp - 0x27c]
call fcn.004b3a0c
add esp, 4
mov ebx, dword [ebp - 0x284]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x4198d8
call fcn.0040c760
mov ecx, dword [0x52f408]
mov dword [ebx + 8], eax
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0xe
idiv ecx
cmp edx, 7
jne 0x41990a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x52f408], edx
add esi, 0xfffffff0
mov byte [ebp - 4], 0x22
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x419925
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x238], 0x10
mov dword [ebp - 0x250], 0x514aec
jb 0x419946
push dword [ebp - 0x24c]
call fcn.004b3a0c
add esp, 4
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
mov dword [ebp - 0x250], 0x5186b0
mov dword [ebp - 4], 0xffffffff
call fcn.004493f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b3a11
mov esp, ebp
pop ebp
ret