Function at 0x423b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52a7fd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0x54d818
jmp 0x423b60
xor edi, edi
push 0x206
lea eax, [esp + 0xca]
push edi
push eax
mov word [esp + 0xd0], di
call fcn.004ec1b0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
add esp, 0xc
cmp eax, 0xff
mov dword [esp + 0x10], eax
jge 0x423c2f
push edi
push eax
lea edx, [esp + 0xcc]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x423e03
lea eax, [esp + 0xc4]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x423bd0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x24]
call fcn.00402af0
lea edx, [esp + 0x10]
mov dword [esp + 0x2e0], edi
call fcn.0042e680
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00403310
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x423e03
mov edx, dword [esp + 0x20]
jmp 0x423dfa
sub eax, 0x101
je 0x423d56
sub eax, 1
je 0x423cb1
sub eax, 1
jne 0x423ef2
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0x28
call fcn.0042e680
push eax
lea eax, [esp + 0xac]
push eax
call fcn.004090f0
add esp, 8
mov esi, eax
lea edx, [esp + 0x10]
mov dword [esp + 0x2e0], 5
call fcn.0042e680
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00403310
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0xc0], 8
jb 0x423e03
mov ecx, dword [esp + 0xac]
push ecx
jmp 0x423dfb
push 0xb
mov ebx, 7
push str._HOMEDRIVE_
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
call fcn.00402af0
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x70]
mov dword [esp + 0x2e0], 3
call fcn.0040a050
mov esi, eax
lea edx, [esp + 0x10]
mov byte [esp + 0x2e0], 4
call fcn.0042e680
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00403310
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x423d24
mov edx, dword [esp + 0x74]
push edx
call fcn.004aaa59
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x34], esi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], edi
mov word [esp + 0x74], di
jb 0x423e03
mov eax, dword [esp + 0x20]
push eax
jmp 0x423dfb
push 0x11
mov ebx, 7
push str._ALLUSERSPROFILE_
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], edi
mov word [esp + 0x44], di
call fcn.00402af0
lea ecx, [esp + 0x38]
lea esi, [esp + 0x8c]
mov dword [esp + 0x2e0], 1
call fcn.0040a050
mov esi, eax
lea edx, [esp + 0x10]
mov byte [esp + 0x2e0], 2
call fcn.0042e680
push 0xffffffffffffffff
push edi
push esi
mov ecx, eax
call fcn.00403310
mov esi, 8
cmp dword [esp + 0xa4], esi
jb 0x423dcf
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004aaa59
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x50], esi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa0], edi
mov word [esp + 0x90], di
jb 0x423e03
mov edx, dword [esp + 0x3c]
push edx
call fcn.004aaa59
add esp, 4
lea edx, [esp + 0x10]
call fcn.0042e680
mov ebx, eax
call fcn.00404cb0
cmp dword [ebx + 0x14], 2
jb 0x423eb8
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x423e2a
mov eax, dword [esi]
jmp 0x423e2c
mov eax, esi
cmp word [eax], 0x22
jne 0x423eb8
mov eax, dword [ebx + 0x14]
lea ecx, [eax - 1]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jbe 0x423e4d
call fcn.004ec14b
mov ecx, dword [esp + 0x18]
cmp dword [ebx + 0x18], 8
jb 0x423e55
mov esi, dword [esi]
cmp word [esi + ecx*2], 0x22
jne 0x423eb8
mov eax, dword [ebx + 0x14]
lea edx, [eax - 2]
mov eax, 1
mov ecx, ebx
lea esi, [esp + 0x54]
call fcn.00404d80
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x2ec], 6
call fcn.00403310
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x423ea7
mov eax, dword [esp + 0x58]
push eax
call fcn.004aaa59
add esp, 4
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
push 0x548004
call fcn.00404bb0
add esp, 4
push 0x5c
push 0x5c
mov edi, ebx
call fcn.00404ae0
push 0x5c
push 0x2f
call fcn.00404ae0
mov eax, dword [esp + 0x24]
add eax, 4
add esp, 0x10
cmp eax, str._ALLUSERSPROFILE_
mov dword [esp + 0x14], eax
jl 0x423b60
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret