Function at 0x41a070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9dc1
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x532d60]
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 [0x538390]
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a114
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 2
call fcn.0044c9c0
lea ecx, [ebp - 0x220]
call fcn.00436bb0
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 4
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a1ca
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a1d5
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0044c9c0
cmp dword [ebp - 0x268], 0x10
jb 0x41a231
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41a272
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00437400
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a2de
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a2e9
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.0044c9c0
cmp dword [ebp - 0x268], 0x10
jb 0x41a345
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41a383
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00437260
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xa
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a3ef
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a3fa
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.0044c9c0
cmp dword [ebp - 0x268], 0x10
jb 0x41a456
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41a494
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00436d90
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xd
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a500
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a50b
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xe
call fcn.0044c9c0
cmp dword [ebp - 0x268], 0x10
jb 0x41a567
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41a5a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00436e70
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x10
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a611
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a61c
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x11
call fcn.0044c9c0
cmp dword [ebp - 0x268], 0x10
jb 0x41a678
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41a6b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x220]
call fcn.00437030
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x13
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a722
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a72d
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x14
call fcn.0044c9c0
cmp dword [ebp - 0x268], 0x10
jb 0x41a789
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41a7c7
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.004bcc70
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
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 0x41a83b
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x41a866
push esi
push eax
lea ecx, [ebp - 0x264]
call fcn.00404e50
jmp 0x41a866
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a844
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00404a90
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x17
call fcn.00433ad0
mov esi, eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x258]
mov eax, dword [0x538390]
and ecx, 0xffffff04
or ecx, 0x104
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], 0
test al, 1
jne 0x41a8cb
or eax, 1
push 0x4e75e0
mov dword [0x538390], eax
mov dword [0x538314], 0x51fae8
call fcn.004b8949
add esp, 4
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x41a8d6
mov esi, dword [esi]
mov ecx, dword [0x534374]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x18
call fcn.0044c9c0
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x268], 0x10
jb 0x41a936
push dword [ebp - 0x27c]
call fcn.004b817c
add esp, 4
mov dword [ebp - 0x220], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov eax, dword [0x537558]
test eax, eax
jne 0x41aa57
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x537408]
mov esi, eax
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov dword [ebp - 0x288], 0x14
idiv dword [ebp - 0x288]
cmp edx, 0x12
jne 0x41a996
mov eax, 1
test ecx, ecx
cmove ecx, eax
mov dword [0x537408], ecx
test esi, esi
jne 0x41aa3e
call fcn.0045b080
test al, al
jne 0x41a9b7
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
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.0044d470
lea ecx, [ebp - 0x260]
push ecx
mov ecx, eax
call fcn.0044ca80
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x17
call fcn.0044c9c0
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 0x41aa32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
jmp 0x41aba4
push str.IsWow64Process
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x537558], eax
test eax, eax
je 0x41a9b7
lea ecx, [ebp - 0x220]
push ecx
push ebx
call eax
test eax, eax
je 0x41a9b7
cmp dword [ebp - 0x220], 0
je 0x41a9b7
mov ecx, 1
jmp 0x41a9b9
mov dword [ebp - 0x250], 0x51c0cc
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 [0x5326d0]
mov ecx, 0x5326d0
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.0044f670
mov edx, eax
mov byte [ebp - 4], 0x24
cmp dword [edx + 0x14], 0x10
jb 0x41ac15
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 0x41ac34
xor ecx, ecx
jmp 0x41ac4d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x280], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ac40
sub ecx, dword [ebp - 0x280]
push ecx
push edx
mov ecx, ebx
call fcn.004012e0
lea ecx, [ebp - 0x288]
call fcn.00433a00
add esp, 0x18
mov byte [ebp - 4], 0x25
mov edx, dword [eax]
lea ebx, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x41acc7
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x41acb2
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x41acb2
call fcn.00404b50
mov dword [ebp - 0x280], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x41aca7
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 0x41acc7
push dword [edx - 0xc]
lea ecx, [ebp - 0x264]
push edx
call fcn.00404a90
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 0x41acea
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 0x41ad05
push dword [ebp - 0x27c]
call fcn.004b817c
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 0x41ad26
call fcn.0040caf0
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0x22
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41ad44
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x238], 0x10
mov dword [ebp - 0x250], 0x51c0cc
jb 0x41ad65
push dword [ebp - 0x24c]
call fcn.004b817c
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], 0x51fca0
mov dword [ebp - 4], 0xffffffff
call fcn.0044c9c0
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.004b8181
mov esp, ebp
pop ebp
ret