Function at 0x42d7c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f45d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0x520458
xor ebx, ebx
lea ebx, [ebx]
push 0x206
lea eax, [esp + 0xca]
push ebx
push eax
mov word [esp + 0xd0], bx
call fcn.004f1960
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
add esp, 0xc
cmp eax, 0xff
mov dword [esp + 0x10], eax
jge 0x42d8d3
push ebx
push eax
lea edx, [esp + 0xcc]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42da9e
lea eax, [esp + 0xc4]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x42d877
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc8]
push eax
lea esi, [esp + 0x24]
call fcn.00407330
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x2e4], ebx
call fcn.00435dc0
push 0xffffffffffffffff
push ebx
mov edx, esi
push edx
call fcn.00401610
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x42da9e
mov eax, dword [esp + 0x20]
jmp 0x42da95
sub eax, 0x101
je 0x42d9f4
sub eax, 1
je 0x42d953
sub eax, 1
jne 0x42db8c
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x28
call fcn.00435dc0
push eax
lea esi, [esp + 0xac]
call fcn.0043b9f0
add esp, 4
mov esi, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2e4], 5
call fcn.00435dc0
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401610
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0xc0], 8
jb 0x42da9e
mov eax, dword [esp + 0xac]
jmp 0x42da95
push 0xb
mov edi, 7
push str._HOMEDRIVE_
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00407330
mov ecx, esi
lea esi, [esp + 0x70]
mov dword [esp + 0x2e0], 3
call fcn.0043e5b0
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x2e4], 4
call fcn.00435dc0
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401610
mov esi, 8
cmp dword [esp + 0x88], esi
jb 0x42d9c3
mov edx, dword [esp + 0x74]
push edx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x34], esi
mov dword [esp + 0x88], edi
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
jb 0x42da9e
mov eax, dword [esp + 0x20]
jmp 0x42da95
push 0x11
mov edi, 7
push str._ALLUSERSPROFILE_
lea esi, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.00407330
mov ecx, esi
lea esi, [esp + 0x8c]
mov dword [esp + 0x2e0], 1
call fcn.0043e5b0
mov esi, eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x2e4], 2
call fcn.00435dc0
push 0xffffffffffffffff
push ebx
push esi
call fcn.00401610
mov esi, 8
cmp dword [esp + 0xa4], esi
jb 0x42da6a
mov edx, dword [esp + 0x90]
push edx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x50], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], bx
jb 0x42da9e
mov eax, dword [esp + 0x3c]
push eax
call fcn.004e7d7e
add esp, 4
lea ecx, [esp + 0x10]
push ecx
call fcn.00435dc0
mov edi, eax
cmp dword [edi + 0x14], 2
jb 0x42db52
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x42dac1
mov eax, dword [esi]
jmp 0x42dac3
mov eax, esi
cmp word [eax], 0x22
jne 0x42db52
mov eax, dword [edi + 0x14]
lea ecx, [eax - 1]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jbe 0x42dae4
call fcn.004e89bf
mov ecx, dword [esp + 0x18]
cmp dword [edi + 0x18], 8
jb 0x42daec
mov esi, dword [esi]
cmp word [esi + ecx*2], 0x22
jne 0x42db52
mov eax, dword [edi + 0x14]
lea edx, [esp + 0x54]
push edi
add eax, 0xfffffffe
push edx
mov ecx, 1
call fcn.0042c240
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
mov eax, edi
mov dword [esp + 0x2ec], 6
call fcn.00401610
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x42db41
mov eax, dword [esp + 0x58]
push eax
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
push 0x520f10
mov eax, edi
call fcn.0042c090
add esp, 4
push 0x5c
push 0x5c
call fcn.0042bfc0
push 0x5c
push 0x2f
call fcn.0042bfc0
mov eax, dword [esp + 0x24]
add eax, 4
add esp, 0x10
cmp eax, 0x520500
mov dword [esp + 0x14], eax
jl 0x42d810
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.004e7d6f
mov esp, ebp
pop ebp
ret