Function at 0x421670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49be98
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4cb06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0
push 0
push 0x4a24fc
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edi, eax
test edi, edi
jns 0x421778
lea ecx, [ebp - 0x40]
call fcn.0044e680
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4216da
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x276
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Failed_to_get_program_files_folder:
mov ecx, eax
call fcn.0040ab10
push edi
mov ecx, eax
call fcn.00407a40
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x2c]
add esp, 4
cmp edx, 8
jb 0x421771
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421767
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a6a
push edx
push ecx
call fcn.0045d989
add esp, 8
xor al, al
jmp 0x421a4f
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421794
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407780
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 1
push eax
mov ecx, 0x4cbc20
call fcn.004357f0
cmp byte [0x4d0660], 0
jne 0x4218cb
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
push 6
push str.__x86_
push 0
call fcn.004361c0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4218cb
push edi
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00417800
push 0xffffffffffffffff
lea eax, [edi + 6]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00417800
mov byte [ebp - 4], 3
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42182c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00417a80
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x421876
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42186c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a6f
push edx
push ecx
call fcn.0045d989
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00407780
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4218cb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4218c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a74
push edx
push ecx
call fcn.0045d989
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004358b0
push 0x4b3d64
mov ecx, esi
call fcn.00435950
call fcn.004204e0
mov ecx, esi
test al, al
je 0x4218f9
push str.Anti_Ransomware
call fcn.00435950
jmp 0x421903
push str.Anti_Malware
call fcn.00435950
push dword [ebp - 0x44]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0
push 0
push 0x4a24dc
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov edi, eax
test edi, edi
jns 0x4219e2
lea ecx, [ebp - 0x5c]
call fcn.0044e680
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x421949
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4cf1e0
call fcn.0040bda0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupmbsetup.cpp
mov ecx, eax
call fcn.0040ab10
mov edx, str.:.
mov ecx, eax
call fcn.0040ab10
push 0x294
mov ecx, eax
call fcn.00407be0
mov edx, 0x4b1c08
mov ecx, eax
call fcn.0040ab10
mov edx, str.Failed_to_get_data_directory:
mov ecx, eax
call fcn.0040ab10
push edi
mov ecx, eax
call fcn.00407a40
push eax
call fcn.0040ae80
mov edx, dword [ebp - 0x48]
add esp, 4
cmp edx, 8
jb 0x421a17
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4219d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a79
push edx
push ecx
call fcn.0045d989
add esp, 8
jmp 0x421a17
mov edx, dword [ebp - 0x44]
mov ecx, edx
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4219f0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x4cbe90
call fcn.00407780
push dword [ebp - 0x44]
call esi
mov dword [ebp - 0x44], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x421a4d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421a43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421a7e
push edx
push ecx
call fcn.0045d989
add esp, 8
mov al, 1
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.0045d468
mov esp, ebp
pop ebp
ret
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
call fcn.004786bc
int3