Function at 0x42fb90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546f5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a4
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [ebp + 0x18], 0
mov dword [ebp - 4], 0
je 0x42fbf0
mov eax, dword [str.Roblox_]
mov ecx, dword [0x558d38]
mov dword [ebp - 0x40], 8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x48], 0
push esi
push edi
call fcn.0046ad70
mov edi, dword [ebp + 0xc]
test al, al
je 0x42ff78
lea ecx, [ebp - 0x5c]
call fcn.0046acf0
mov byte [ebp - 4], 1
cmp edi, 8
ja case.default.0x42fc13
jmp dword [edi*4 + 0x43020c]
movups xmm0, xmmword [0x59690c]
jmp 0x42fc60
movups xmm0, xmmword [0x5968bc]
jmp 0x42fc60
movups xmm0, xmmword [0x5968ec]
jmp 0x42fc60
movups xmm0, xmmword [0x5968ac]
jmp 0x42fc60
movups xmm0, xmmword [0x59689c]
jmp 0x42fc60
movups xmm0, xmmword [0x5968cc]
jmp 0x42fc60
movups xmm0, xmmword [0x59688c]
jmp 0x42fc60
movups xmm0, xmmword [0x5968fc]
movups xmmword [ebp - 0x30], xmm0
movzx esi, byte [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, esi
mov dword [ebp - 0x1c], 0
shl eax, 0xf
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0046add0
cmp eax, 0x80004001
je 0x42ff6a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call fcn.00413290
mov ecx, eax
test ecx, ecx
je 0x4301eb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test edx, edx
je 0x42fdd9
test edx, 0xffff0000
jne 0x42fcdc
movzx eax, dx
lea ecx, [ebp - 0x10]
push eax
call fcn.0042e270
jmp 0x42fde1
mov edi, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42fce1
sub edi, ecx
sar edi, 1
je 0x42fdd9
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x18], eax
mov eax, edx
sub eax, esi
sar eax, 1
mov dword [ebp - 0x54], eax
test edi, edi
js 0x4301f5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42fd2d
push edi
lea ecx, [ebp - 0x10]
call fcn.0042e410
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x54]
lea ecx, [edi + edi]
cmp eax, dword [ebp - 0x18]
ja 0x42fd7b
lea edx, [esi + eax*2]
test ecx, ecx
je 0x42fdc5
test esi, esi
jne 0x42fd54
call fcn.005245bb
mov dword [eax], 0x16
jmp 0x42fdbd
test edx, edx
jne 0x42fd65
call fcn.005245bb
mov dword [eax], 0x16
jmp 0x42fdbd
mov eax, dword [esi - 8]
add eax, eax
cmp eax, ecx
jb 0x42fdb2
push ecx
push edx
push esi
call fcn.00518310
add esp, 0xc
jmp 0x42fdc2
mov eax, dword [esi - 8]
add eax, eax
test ecx, ecx
je 0x42fdc5
test esi, esi
jne 0x42fd95
call fcn.005245bb
mov dword [eax], 0x16
jmp 0x42fdbd
cmp eax, ecx
jb 0x42fda6
push ecx
push edx
push esi
call fcn.00518310
add esp, 0xc
jmp 0x42fdc2
push eax
push 0
push esi
call fcn.00518890
add esp, 0xc
call fcn.005245bb
mov dword [eax], 0x22
call fcn.0051bb4f
lea ecx, [edi + edi]
cmp edi, dword [esi - 8]
jg 0x4301f5
xor eax, eax
mov dword [esi - 0xc], edi
mov word [ecx + esi], ax
jmp 0x42fde1
lea ecx, [ebp - 0x10]
call fcn.0042e0b0
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.0042dbb0
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp - 0x10]
je 0x42fe46
push esi
lea ecx, [ebp - 0x90]
call fcn.00415470
push eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 4
push eax
call fcn.00430cd0
push eax
mov byte [ebp - 4], 5
call fcn.0042eb70
add esp, 0xc
lea ecx, [ebp - 0xa8]
call fcn.00416700
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00416700
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x42fea3
push eax
lea ecx, [ebp - 0x10]
call fcn.0042dbb0
cmp byte [ebp + 0x10], 0
mov esi, dword [ebp - 0x10]
je 0x42fea3
push esi
lea ecx, [ebp - 0xa8]
call fcn.00415470
push eax
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 6
push eax
call fcn.00430cd0
push eax
mov byte [ebp - 4], 7
call fcn.0042eb70
add esp, 0xc
lea ecx, [ebp - 0x90]
call fcn.00416700
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 3
call fcn.00416700
push esi
lea ecx, [ebp - 0x14]
call fcn.0042c4c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0042dea0
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [ebp - 0x14]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x18], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x42fee0
sub edx, dword [ebp - 0x18]
mov ecx, edi
sar edx, 1
push edx
push eax
call fcn.0041ffd0
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42ff16
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x42ff2b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x5c]
call fcn.0046ad20
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x4301a8
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43019e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4301ff
jmp 0x43019e
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.0046ad20
jmp 0x42ff7c
movzx esi, byte [ebp + 0x10]
lea eax, [ebp - 0x50]
shl esi, 0xf
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004b97c0
add esp, 8
mov edx, dword [ebp + 0x14]
mov byte [ebp - 4], 9
test edx, edx
je 0x430047
mov ecx, edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42ffc0
sub ecx, dword [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x38]
call fcn.0041fee0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004b97c0
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0xb
jb 0x42fffa
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.0041fd60
lea ecx, [ebp - 0x90]
call fcn.00416700
mov edx, dword [ebp - 0x24]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x430047
mov ecx, dword [ebp - 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43003d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430204
push edx
push ecx
call fcn.004b9160
add esp, 8
cmp edi, 8
ja case.0x43004c.7
jmp dword [edi*4 + 0x430230]
mov eax, 0x1c
jmp 0x430084
mov eax, 0x23
jmp 0x430084
mov eax, 2
jmp 0x430084
mov eax, 0x17
jmp 0x430084
mov eax, 0x26
jmp 0x430084
xor eax, eax
jmp 0x430084
mov eax, 0x1a
jmp 0x430084
mov eax, dword [ebp - 0x18]
cmp byte [ebp + 0x10], 0
je 0x430097
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x78]
cmovae ecx, dword [ebp - 0x78]
jmp 0x430099
xor ecx, ecx
lea edx, [ebp - 0x2b0]
or esi, eax
push edx
push ecx
push 0
push 0
push esi
push 0
call sub.SHELL32.dll_SHGetFolderPathAndSubDirW
test eax, eax
jne 0x4301bb
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042c4c0
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 0xc
jne 0x430109
cmp dword [ebp - 0x68], 0
je 0x430109
cmp dword [ebp - 0x64], 8
lea edx, [ebp - 0x78]
jb 0x4300ea
mov edx, dword [ebp - 0x78]
test edx, edx
jne 0x4300ea
xor ecx, ecx
jmp 0x4300ff
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4300f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x10]
call fcn.0042df10
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0042c4c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xd
call fcn.0042dea0
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov eax, dword [ebp - 0x14]
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x430144
sub edx, esi
mov ecx, edi
sar edx, 1
push edx
push eax
call fcn.0041ffd0
mov edx, dword [ebp - 0x14]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x430179
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x430191
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x78]
call fcn.00416700
jmp 0x42ff33
push edx
push ecx
call fcn.004b9160
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x90]
push str.Bad_result_from_SHGetFolderPathAndSubDirW_x
push eax
call fcn.004b99c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xe
call fcn.00415f60
push 0x5bd8e4
lea eax, [ebp - 0x60]
push eax
call fcn.00518295
push 0x80004005
call fcn.004178c0
push 0x80070057
call fcn.004178c0
call fcn.0051bb5f
call fcn.0051bb5f
nop dword [eax]
sbb bh, ah
inc edx
add byte [ebx], ah
cld
inc edx
add byte [esp + edi*8], ch
inc edx
add byte [0x470042fc], dh
cld
inc edx
add byte [esi], bh
cld
inc edx
add byte [eax - 4], dl
inc edx
add byte [ecx - 4], bl
inc edx
add byte [edx], bl
cld
inc edx
add byte [ebx], dl
inc ebx
add byte [ebx], dl
inc ebx
add byte [edx], bl
inc ebx
add byte [ecx], ah
inc ebx
add byte [eax], ch
inc ebx
add byte [edi], ch
inc ebx
add byte [esi], dh
inc ebx
add byte [ecx + 0x7a004300], al
add byte [ebx], al
int3