Function at 0x40d140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a03ac
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4c2100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x118], ecx
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x4a2420
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40d9a0
mov edx, dword [ebp - 0x10c]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x138], 0
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x134], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d200
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x148]
call fcn.004189b0
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x40]
call fcn.00413470
mov ecx, dword [ebp - 0x134]
cmp ecx, 7
jbe 0x40d26b
mov edx, dword [ebp - 0x148]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d261
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dab2
push ecx
push edx
call fcn.00476bd7
add esp, 8
push dword [ebp - 0x10c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xb0
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004786f0
add esp, 8
lea ecx, [ebp - 0x108]
call fcn.00410e00
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0xf8]
push dword [ebp - 0x30]
cmova edx, dword [ebp - 0x40]
call fcn.0041a6d0
mov edx, 0x4bb120
mov ecx, eax
call fcn.00417410
cmp dword [ebp + 0x1c], 7
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov ecx, eax
call fcn.0041a6d0
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x108]
push eax
call fcn.00410cf0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmp edi, eax
je 0x40d351
cmp dword [ebp - 0x14], 7
mov ecx, eax
mov esi, dword [ebp - 0x18]
cmova ecx, dword [ebp - 0x28]
mov eax, dword [edi + 0x14]
cmp esi, eax
ja 0x40d33b
mov dword [ebp - 0x10c], edi
mov edx, edi
cmp eax, 7
jbe 0x40d31c
mov edx, dword [edi]
mov dword [ebp - 0x10c], edx
lea eax, [esi + esi]
mov dword [edi + 0x10], esi
push eax
push ecx
push edx
call fcn.00478170
mov eax, dword [ebp - 0x10c]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x40d351
push ecx
mov byte [ebp - 0x10c], 0
mov ecx, edi
push dword [ebp - 0x10c]
push esi
call fcn.004183e0
mov edx, 0x4bb120
lea ecx, [ebp - 0xf8]
call fcn.00417410
mov edx, str.oapp
mov ecx, eax
call fcn.00417750
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x108]
call fcn.00410cf0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x28]
mov byte [ebp - 0x10c], 0
lea ecx, [ebp - 0x130]
push dword [ebp - 0x10c]
call fcn.0041a2c0
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x130]
mov esi, 1
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], esi
call fcn.004050a0
test al, al
je 0x40d40e
mov byte [ebp - 0x114], 0
lea edx, [ebp - 0x28]
push dword [ebp - 0x114]
lea ecx, [ebp - 0x148]
call fcn.0041a2c0
add esp, 4
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x148]
mov esi, 3
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], esi
call fcn.00405020
mov byte [ebp - 0x10d], 0
test al, al
jne 0x40d415
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x114]
test al, 2
je 0x40d492
mov ecx, dword [ebp - 0x134]
and eax, 0xfffffffd
mov dword [ebp - 0x114], eax
cmp ecx, 7
jbe 0x40d475
mov edx, dword [ebp - 0x148]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d465
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dab7
push ecx
push edx
call fcn.00476bd7
mov eax, dword [ebp - 0x114]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
mov word [ebp - 0x148], cx
mov dword [ebp - 4], 5
test al, 1
je 0x40d4e6
mov ecx, dword [ebp - 0x11c]
and eax, 0xfffffffe
mov dword [ebp - 0x114], eax
cmp ecx, 7
jbe 0x40d4e6
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d4dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dab7
push ecx
push edx
call fcn.00476bd7
add esp, 8
cmp byte [ebp - 0x10d], 0
je 0x40d57e
mov byte [ebp - 0x10c], 0
lea edx, [ebp - 0x28]
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x130]
call fcn.0041a2c0
add esp, 4
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 8
call fcn.00405220
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 0x10d], al
cmp ecx, 7
jbe 0x40d570
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d560
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dabc
push ecx
push edx
call fcn.00476bd7
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
jne 0x40d57e
mov edx, str.Could_not_create_app_base_folder.
jmp 0x40d8d4
mov byte [ebp - 0x10c], 0
lea edx, [ebp - 0x58]
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x130]
call fcn.0041a2c0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x130]
mov esi, dword [ebp - 0x114]
or esi, 4
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], esi
call fcn.004050a0
test al, al
je 0x40d60e
mov byte [ebp - 0x114], 0
lea edx, [ebp - 0x58]
push dword [ebp - 0x114]
lea ecx, [ebp - 0x148]
call fcn.0041a2c0
add esp, 4
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x148]
or esi, 8
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], esi
call fcn.00405020
mov byte [ebp - 0x10d], 0
test al, al
jne 0x40d615
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0x114]
test al, 8
je 0x40d692
mov ecx, dword [ebp - 0x134]
and eax, 0xfffffff7
mov dword [ebp - 0x114], eax
cmp ecx, 7
jbe 0x40d675
mov edx, dword [ebp - 0x148]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d665
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dac1
push ecx
push edx
call fcn.00476bd7
mov eax, dword [ebp - 0x114]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
mov word [ebp - 0x148], cx
mov dword [ebp - 4], 5
test al, 4
je 0x40d6dd
mov ecx, dword [ebp - 0x11c]
cmp ecx, 7
jbe 0x40d6dd
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d6d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dac1
push ecx
push edx
call fcn.00476bd7
add esp, 8
cmp byte [ebp - 0x10d], 0
je 0x40d775
mov byte [ebp - 0x10c], 0
lea edx, [ebp - 0x58]
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x130]
call fcn.0041a2c0
add esp, 4
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xb
call fcn.00405220
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 0x10d], al
cmp ecx, 7
jbe 0x40d767
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d757
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dac6
push ecx
push edx
call fcn.00476bd7
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
jne 0x40d775
mov edx, str.Could_not_create_app_base_data_folder.
jmp 0x40d8d4
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
mov dword [ebp - 0x10c], esp
push eax
call fcn.00413500
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413500
mov ecx, dword [ebp - 0x14c]
mov byte [ebp - 4], 5
call fcn.0040dbb0
add esp, 0x30
test al, al
jne 0x40d7bb
mov edx, str.Could_not_unzip_the_file.
jmp 0x40d8d4
mov edx, 0x4bb120
lea ecx, [ebp - 0xf8]
call fcn.00417410
cmp dword [ebp + 0x1c], 7
lea edx, [ebp + 8]
push dword [ebp + 0x18]
cmova edx, dword [ebp + 8]
mov ecx, eax
call fcn.0041a6d0
add esp, 4
mov edx, str..exe
mov ecx, eax
call fcn.00417750
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x108]
call fcn.00410cf0
mov esi, dword [ebp - 0x118]
mov ecx, esi
push eax
call fcn.00413470
mov ecx, dword [ebp - 0x11c]
cmp ecx, 7
jbe 0x40d84f
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d845
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dacb
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov byte [ebp - 0x118], 0
lea ecx, [ebp - 0x130]
push dword [ebp - 0x118]
mov edx, esi
call fcn.0041a2c0
add esp, 4
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0xd
call fcn.00405020
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 0x10d], al
cmp ecx, 7
jbe 0x40d8cb
mov edx, dword [ebp - 0x130]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d8bb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dad0
push ecx
push edx
call fcn.00476bd7
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
jne 0x40d8f0
mov edx, str.Startup_exe_not_found.
mov ecx, 0x4c3c60
call fcn.00417410
push eax
call fcn.004176b0
add esp, 4
mov byte [ebp - 0x10d], 0
jmp 0x40d8f7
mov byte [ebp - 0x10d], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x40d931
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d927
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dad5
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x40d97f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d975
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dad5
push ecx
push edx
call fcn.00476bd7
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040dae0
jmp 0x40d9bf
mov edx, str.Could_not_get_local_appdata_folder.
mov ecx, 0x4c3c60
call fcn.00417410
push eax
call fcn.004176b0
add esp, 4
mov byte [ebp - 0x10d], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x40d9f9
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40d9ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dad5
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 7
jbe 0x40da47
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dad5
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov ecx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp ecx, 7
jbe 0x40da91
mov edx, dword [ebp + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40da87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dad5
push ecx
push edx
call fcn.00476bd7
add esp, 8
mov al, byte [ebp - 0x10d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00476631
mov esp, ebp
pop ebp
ret
call fcn.0047fa03
call fcn.0047fa03
call fcn.0047fa03
call fcn.0047fa03
call fcn.0047fa03
call fcn.0047fa03
call fcn.0047fa03
call fcn.0047fa03
int3