Function at 0x4f1990
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a7be
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x7f206c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x62a288
push str.IDI_MB
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4f19dd
xor al, al
jmp 0x4f1cfe
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4f19d6
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4f19d6
push esi
call fcn.004a840b
add esp, 4
mov dword [ebp - 0x464], 0
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x460], 0
push dword [ebp - 0x454]
push eax
call fcn.00407a80
mov dword [ebp - 4], 0
or edi, 0xffffffff
cmp dword [ebp - 0x464], 0
jne 0x4f1a44
mov bl, 1
jmp 0x4f1cd4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [ebp - 0x464]
push eax
push ebx
call fcn.004bf740
add esp, 0xc
mov dword [ebp - method.juce::MemoryInputStream.virtual_0], vtable.juce::MemoryInputStream.0
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
push 0
push 0x1a
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4f1afb
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x454]
call fcn.0041d400
add esp, 4
lea edx, [ebp - 0x454]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x45c]
call fcn.00524830
mov ecx, dword [ebp - 0x454]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f1b05
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f1b05
push ecx
call fcn.004a8172
add esp, 4
jmp 0x4f1b05
mov dword [ebp - 0x45c], 0x7a135c
push ecx
mov eax, esp
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x45c]
mov dword [eax], 0x62a2a0
lea eax, [ebp - 0x458]
push eax
call fcn.00527e80
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x458]
call fcn.00527c40
mov ecx, dword [ebp - 0x454]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f1b5e
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f1b5e
push ecx
call fcn.004a8172
add esp, 4
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x450]
mov byte [ebp - 4], 0xb
call fcn.00503170
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x448], 2
jne 0x4f1c67
lea ecx, [ebp - 0x458]
call fcn.005272f0
test al, al
je 0x4f1c67
xor esi, esi
cmp dword [ebp - 0x448], esi
jle 0x4f1c35
push ecx
push 1
lea eax, [ebp - 0x458]
push eax
push esi
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x450]
call fcn.00502a80
mov eax, dword [ebp - 0x454]
cmp byte [eax], 0
jne 0x4f1c5c
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x4f1c2c
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f1c2c
push ecx
call fcn.004a8172
add esp, 4
inc esi
cmp esi, dword [ebp - 0x448]
jl 0x4f1be6
mov eax, 0x7a135c
mov bl, 1
lea ecx, [eax - 8]
cmp ecx, 0x7a1354
je 0x4f1c69
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f1c69
push ecx
call fcn.004a8172
add esp, 4
jmp 0x4f1c69
mov cl, byte [eax]
test cl, cl
je 0x4f1c3a
sete bl
jmp 0x4f1c3c
xor bl, bl
lea ecx, [ebp - 0x450]
call fcn.00528ac0
mov ecx, dword [ebp - 0x458]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f1c98
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f1c98
push ecx
call fcn.004a8172
add esp, 4
mov ecx, dword [ebp - 0x45c]
add ecx, 0xfffffff8
cmp ecx, 0x7a1354
je 0x4f1cbc
mov eax, edi
lock xadd dword [ecx], eax
test eax, eax
jne 0x4f1cbc
push ecx
call fcn.004a8172
add esp, 4
push dword [ebp - 0x46c]
mov dword [ebp - method.juce::MemoryInputStream.virtual_0], vtable.juce::MemoryInputStream.0
call fcn.004c2bdc
add esp, 4
mov esi, dword [ebp - 0x460]
test esi, esi
je 0x4f1cfc
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4f1cfc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4f1cfc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a7e5e
mov esp, ebp
pop ebp
ret